I recently updated to WordPress 4.5 and all of a sudden a certain news ticker plugin that I use was no longer displaying correctly. I contacted the developer and he seems to think it is due to a jquery issue with my theme. After a bit of research, other people have reported the same issue, and have been able to fix it by editing a small part of their theme coding. Unfortunately, I have no idea how to manually find and fix this possible error, are you able to advise me on how to fix it please?
The plugin is called Ditty News Ticker: https://wordpress.org/plugins/ditty-news-ticker/
The website page is: http/www.advent-im.co.uk
A fix is discussed here: https://wordpress.org/support/topic/ticker-just-stopped-working
and it mentions fixing an error that I also have when viewing my site through Google Chrome developer console: Uncaught Error: Syntax error, unrecognized expression: [href^=#]
Just to add, I’m not sure whether this information will help or not, but, I previewed the site on a standard WordPress theme (Twenty Twelve) and the ticker functioned and displayed as normal.
Thanks for your reply. After speaking to the plugin developer, he has explained to me that there is nothing wrong with the plugin, but seems to think that there are errors with the site theme conflicting with WP 4.5 that is causing it to not display correctly.
He passed this screengrab onto me with the site errors displaying on his console: http://pasteboard.co/iV3fJbX.png (he did mention the ‘measureit’ error is browser related).
Do you think it’s a possibility that updating the theme to the new version (as well as visual composer) could fix the issue?
2 years, 2 months ago MihailaKeymaster
Updating theme and Visual Composer is definitely a good idea.
For the errors in the screenshot, please go to file js/main.js and find this line:
linkElement : 'a:not([target="_blank"]):not([href^=#]):not(.lightbox-gallery):not(.zoom):not(.prettyphoto)'
Replace with this:
linkElement : 'a:not([target="_blank"]):not([href^="#"]):not(.lightbox-gallery):not(.zoom):not(.prettyphoto)'
Find this other line too:
Replace with this:
Let us know.
Thank you for your response and your help. It seems like I’m having a few issues since the new wordpress update…
When I update to the new theme v1.6 (from 1.4) first of all, all of my widgets disappear: http://pasteboard.co/wHgCnCV.jpg
Also, with the new theme, on all pages other than the homepage, in-between the call-to-action and the page footer area, a ‘share-this’ social media bar appears and splits the two apart. I have no idea where this has appeared from: http://pasteboard.co/wHiuuwa.jpg
In addition, whether it be theme v1.4 or 1.6, it seems that this page is now invisible…
1-Please check for the widgets in the Appearance > Widgets > Inactive Widgets, area. All of your previously created widgets should be there. Drag and drop again. This happened because the new wordpress has added id’s to widgets. So you need to reset them.
2-You have a syntax error deriving from this page: http://www.advent-im.co.uk/security-and-counter-terror-expo-sctx-see-you-there/
Did you add any custom code here?
Did you change theme files? Made any edit or added some other code? The social shares bar is not part of theme default features. Please disable Jetpack plugin and try again.
Let us know.
1. (widgets) this worked as you suggested thank you.
2. (syntax error) I’m not aware of any custom code or anything. At least not lately. I checked the console and ‘binned’ that page. I then ‘binned’ another page that displayed the same error. After that, this error is shown:
3. (socialshare) disabling the Jetpack plugin solved the issue of the ‘sharethis’ function.
Sorry for the late reply.
This is strange. I checked theme files but this code it’s nowhere. I see you have an old version of theme. Did you perhaps updated Visual Composer after WP upgrade?
Please follow these steps:
-Deactivate all third party plugins ;
-Download a fresh copy of the latest release of theme from your Envato account;
-Update theme. It has many changes and is compatible with the latest WP.
-Update Visual Composer;
-Activate third party plugins one at a time;
NOTE: Please make sure to save a backup of theme files in case you have made direct changes to them!
Let us know.
I uploaded the most up-to-date theme and after a bit of tinkering with plug-ins, managed to solve the outstanding issues above. Thanks for your help and advice. Please feel free to close this thread.
I am glad everything is ok now. Let us know for anything.
You must be logged in to reply to this topic.