Jump to content

Archived

This topic is now archived and is closed to further replies.

Keith Vaugh

Twitter widget

Recommended Posts

Keith Vaugh+    14
Keith Vaugh

Hi All

 

I am trying to implement a twitter widget using the twitter code in a morefoot section on www.magva.com

It should be appearing in the middle widget but as you will see, it appears during the loading and then disappears again.

 

Anyone any ideas on why this might be?

 

The only custom CSS I have for the morefoot section is:

/* this changes the colour's in the morefoot and the font-size */

#morefoot { background-color: #404040; }
#morefoot .widget { color: #ffffff; }
#morefoot .widget-title { color: #ffffff; font-size: 92%; } 

This is the code that I am getting from the twitter site:



			
		

Share this post


Link to post
Share on other sites
Keith Vaugh+    14
Keith Vaugh

Think I have an answer to this one. I have the twitter widget working on another site hence I don't think its a code issue.

 

Q> Does the morefoot section allow a widget such as the twitter widget? Might there be a coding conflict?

 

Thanks

Share this post


Link to post
Share on other sites
Danny    1,327
Danny

Hi,

 

Whats the code you're using for your Twitter Widget and where have you added the code into a Text Widget ?

 

Can you add your code here - http://paste.pagelines.com/ Then provide a link to your pastie please.


Please search our forums, before posting!

Share this post


Link to post
Share on other sites
Danny    1,327
Danny

OK, you shouldn't add Javascript anywhere on your page. All javascript should be added to:

 

Wordpress Admin Dashboard > PageLines > Site Options > Custom Code > Header Scripts or Footer Scripts.

 

So the <a> link of your code should be added to the TextWidget and the javascript should be added to the settings above.


Please search our forums, before posting!

Share this post


Link to post
Share on other sites
Keith Vaugh+    14
Keith Vaugh

Thanks Danny. Tried that but getting the same result. 

 

The Widget appears while the page loads but then disappears.

Share this post


Link to post
Share on other sites
Keith Vaugh+    14
Keith Vaugh

I think I'll abandon this method for the moment. Have an alternative that might work. 

Share this post


Link to post
Share on other sites
Danny    1,327
Danny

You must have some other script or plugin causing the issue, the code works perfectly for me.

 

http://d.pr/i/5cvk


Please search our forums, before posting!

Share this post


Link to post
Share on other sites
Keith Vaugh+    14
Keith Vaugh

Thanks Danny. Will have to do some digging if I opt to use it later. It might have something to do with the colour fill I am using in the footer.

Share this post


Link to post
Share on other sites
Rob    547
Rob

Keith,

 

Framework's Morefoot has had some issues with Javascript for a long time.  I tried adding the code for Google AdSense and other ad systems there a while ago and it made havoc with my site.  I never did find out why the Morefoot reacts so badly.  Keep in mind, the AdSense code isn't the actual Javascript, but just a call to it -- the script itself being fed by Google, not locally.

 

I was able to make the Twitter Timelines work in my sidebar, if that helps.  https://dev.twitter.com/docs/embedded-timelines

 

It was easy, efficient and customizable. You may want to consider that option.

  • Like 1

Former PageLines Moderator, Food Expert and Raconteur

Share this post


Link to post
Share on other sites
Keith Vaugh+    14
Keith Vaugh

Thanks Rob

Yea I managed to get them in another site in the sidebars with no trouble. 

Ultimately I opted to use a plugin (DW twitter) to get the functionality in the morefoot section. Has worked with no issues. 

 

Would have preferred to use the twitter code though. 

Share this post


Link to post
Share on other sites
Rob    547
Rob

You're very welcome Keith, as always!

  • Like 1

Former PageLines Moderator, Food Expert and Raconteur

Share this post


Link to post
Share on other sites

  • Similar Content

    • tristanrodgers
      By tristanrodgers+
      Hi there!
      I'd love to have some social media buttons in my navbar like my online-shop has!
      http://mc1r-magazine.com/
      Can someone explain me how to create them? I tried a lot but don't know how to realize them...
      Greetings from Germany,
      Tristan
    • webbdo
      By webbdo+
      Hi,
      In the social links Twitter shows 404 error in the API. Example:
      "GET http://urls.api.twitter.com/1/urls/count.json?url=http://www.webbdo.se/cybe…onday/&callback=jQuery1113017799108568578959_1449307004771&_=1449307004772 "
      This on all posts that have the "social links" and Twitter included.
      See example: http://www.webbdo.se/cyber-monday/
      How can it be fixed?
       
    • hibbsy78
      By hibbsy78+
      I'm getting an issue on page load with the status 'Waiting for urls.api.twitter.com' on http://www.johnhibbs.me/ which is causing a problem when trying to edit the site. 
      Anyone else getting this?
       

    • maggiebbass
      By maggiebbass
      Can anyone help me get twitter cards set up, or point me in  the right direction? I've seen a lot of how to's floating around, but none are specific to the DMS user, so I'm running into the problems because whereas the benefit to the DMS is the lack of needing to code really, but all the directive I have on installing it involves adding code someplace, and I'm not sure how to do this. I've set up my jetpack as described below, and I even have JM twitter card plug in--which I really thought was solving the problem. No matter what though, when ever I try to link or post t twitter is just posts a link as it always has. No picture of anything. Any advice on what to do would be great!
      https://dev.twitter.com/cards/cms-integration
    • cstreeting
      By cstreeting
      Hi all,
       
      I'm trying to re-create the PageLines Twitter feed (seeing that it is broken since Twitter's recent API changes). I signed up to Twitter's embedded timelines and so I am looking to add that Twitter widget to a sidebar that is similar-looking to PageLines' Twitter integration. Anyone have any idea on how to do this? I've been able to add the widget to the Morefoot Left (or Middle or Right) section but it gets added to the top of the page, under the header, and only in a single-of-three-columns format.
       
      Any help would be appreciated and I think this might help MANY others...
×