• This plugin left me with some invalid HTML5 code (according to the W3C Validator), but (thanks to the developer’s very quick response) I added the following code to my functions.php file and that issue was fixed:

    function ms_scoped() {
        return ' scoped';
    }
    add_filter('metaslider_style_attributes', 'ms_scoped', 25, 3);
Viewing 3 replies - 1 through 3 (of 3 total)
  • Hi mobilewebexpert,

    There is a dedicated support forum for questions like these here: https://www.ads-software.com/support/plugin/ml-slider

    To answer your question, Not without including it on every page. It’s not ideal, I know (and I’ve spent many hours on multiple occasions trying to figure something out), but the architecture of WordPress makes this as close to impossible as you can get.

    Here’s how WordPress runs:
    It generates the <head> section
    It runs through the page content (including shortcodes – at this point it’s too late to put stuff in the <head>, so it gets queued up to go into the footer)
    It generates the footer and prints any queued up JS.

    The only way to get stuff to be printed into the <head> from a shortcode is by using hacks, something I don’t want to do as it’s messy and could be the start of lots of unforeseen issues. Some people prefer the JS in the footer also.

    You could look at WP Total Cache, which post processes the HTML of the whole page, and can then minify and move any JS to the <head>. This sort of functionality is quite specialised and outside of the realm of what I think a slideshow plugin should be responsible for, plus WP Total Cache and other minification plugins do a pretty good job of it ??

    Regards,
    Tom

    Thread Starter mobilewebexpert

    (@mobilewebexpert)

    I’ll give WP Total Cache a try. Thanks again, Tom.

    Thanks for upping the rating – much appreciated ??

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Best image slider plugin I've found so far’ is closed to new replies.