Selectively disabling WP Show More
-
First Rene … Thanks for a GREAT plugin. It is Super useful!!!
I have a weird situation … On one particular archive page, I need to disable the Read More / Read Less functionality. On this one page, I need the entire content to show and to hide the Read More / Show Less link.
These are the 3 statements I need in order to make this happen:
jQuery('.wpsm-content').removeClass('wpsm-content-hide') jQuery('.wpsm-show').addClass('wpsm-content-hide') jQuery('.wpsm-hide').addClass('wpsm-content-hide')
I’ve tried creating a plugin with those 3 lines and invoking it on the page in question, and even changed the priority of the plugin to 55. That didn’t work. I then tried adding an enqueue before the JQuery with a priority of 55 and that didn’t seem to work either.
No matter what I’ve tried, I can’t get these statements to execute on the page after your script. If I copy your script and CSS to a separate file and include it together with the HTML it works fine. It’s more that I can’t get it to work within the WordPress page.
I know this doesn’t really qualify as a support request for your plugin, but I’m hoping that you can provide a little guidance.
Thanks for ANY help you can provide … Jeff
- The topic ‘Selectively disabling WP Show More’ is closed to new replies.