Martin Tod
Forum Replies Created
-
If you want to show multiple tweets – which then rotate, you need to be using version 2 of the JavaScript on the settings page and set the rotation to ‘carousel’!
I thought the problem was that it showed one Tweet and then stopped!
This is the line that breaks it….
<script type="text/javascript" src=" ... /wp-content/themes/magzimus/includes/js/jquery-1.4.1.min.js"></script>
All you need to do is find the line that adds it and comment it out<!---->- This reply was modified 8 years, 1 month ago by Martin Tod.
Which theme is it? I can take a quick look at your site if that helps.
It’s unusual for the theme to be the problem. It’s normally a plug-in. And sometimes I can code around the theme.
It’s also worth fixing because this will potentially break a LOT of plug-ins and WordPress functionality.
Martin
The problem is that the theme or plug-in that’s causing the problem is hard-coding the link to jQuery instead of using WordPress’s
wp_enqueue_script("jquery");command (more here).The trick is to find the line of code that adds the script (and any other scripts) and swap them for a suitable series of
wp_enqueue_script()commands or, if they’re not needed, just delete them.Many thanks.
From that, I’d guess that you’ve got an ancient plug-in or theme that’s installing the 1.4.1 version of jQuery from around 2010 and overwriting the 1.12.4 version included in WordPress – and overwriting jQuery Cycle (as installed by Rotating Tweets) at the same time!
If you look at the code on your page, is there something that gives a clue as to what might be doing it?
The normal problem is a clash of JavaScripts – either because there’s a poorly designed plug-in or theme that doesn’t use the standard WordPress way of installing scripts – or because there’s another plug-in using the same rotation script as Rotating Tweets…
If you look at the HTML on the page and the console, it can normally tell you which one it is!
Forum: Plugins
In reply to: [Rotating Tweets (Twitter widget and shortcode)] Beaver BuilderThis normally means that there’s a clash of JavaScripts – either because there’s a poorly designed plug-in or theme that doesn’t use the standard WordPress way of installing scripts – or because there’s another plug-in using the same rotation script as Rotating Tweets…
If you look at the HTML on the page and the console, it can normally tell you which one it is!
There are two reasons it might show one Tweet.
- There is only one Tweet in the Twitter account for it to show!
- It’s pulling in more Tweets and putting them on the page (which you can normally see in HTML), but the rotation is broken – normally because there’s a clash of JavaScript with another plug-in or with the template.
If you post a link to the site, it’s normally possible to see what the problem is.
Forum: Plugins
In reply to: [Rotating Tweets (Twitter widget and shortcode)] Beaver BuilderWhat does the Console say
[F12]– or can you send me a link? It’s a commercial theme so I’m not really in a position to test it.Joe – it doesn’t normally.
My test page is here – https://www.martintod.org.uk/blog/2008/02/updated-widget-to-show-page-hierarchies/#more-96 – where it doesn’t do that.
Forum: Plugins
In reply to: [Rotating Tweets (Twitter widget and shortcode)] RT and ‘Search’ + ‘Offset’You might also have an inverted comma problem – mixing
"and'.Try:
[rotatingtweets search="from:handle filter:media" tweet_count="2" offset="1" no_rotate="1"]
or
[rotatingtweets search="from:handle filter:media" tweet_count=2 offset=1 no_rotate=1]Forum: Plugins
In reply to: [Rotating Tweets (Twitter widget and shortcode)] RT and ‘Search’ + ‘Offset’Strictly, it is honouring the offset, but then it loops back to the beginning.
If you only want the 2nd one, it would be:
‘[rotatingtweets search=”from:handle filter:media” tweet_count=’1′ offset=’1′ no_rotate=’1’]′- This reply was modified 8 years, 1 month ago by Martin Tod.
I think the click area outlined in:
<a href="https://twitter.com/shinyobjectsinc" aria-label=""> <span class="fusion-column-inner-bg-image" style="background-position:left top;background-repeat:no-repeat;-webkit-background-size:cover;-moz-background-size:cover;-o-background-size:cover;background-size:cover;"></span></a>might be sitting on top of Rotating Tweets. It’s not actually part of the Rotating Tweets code!
Thanks for the nice comments about the plug-in.
Looking through the article, I think it should be fine. There’s no indicator that they’re changing they way that Rotating Tweets accesses tweets – and currently RT doesn’t access DMs which, if I understand the post correctly, is the only bit that is changing.
Best wishes,
Martin
Forum: Plugins
In reply to: [Rotating Tweets (Twitter widget and shortcode)] Tweets not updatingRotating Tweets currently puts the tweets into the page’s HTML – so it only updates when the page is refreshed or reloaded.
In theory, it could be updated to fetch the Tweets more often, but it doesn’t do this yet.