• Resolved jamespav

    (@jamespav)


    Hello
    i tried to use this code

    add_filter( 'autoptimize_filter_imgopt_lazyload_cssoutput', 'nonoscript_lazyload');
    function nonoscript_lazyload($in) {
       return str_replace( '<noscript><style>.lazyload{display:none;}</style></noscript>', '', $in );
    }

    to hide noscripts tag but it is not working
    Can u help me to hide all the noscript tags which generated from the plugin?

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Optimizing Matters

    (@optimizingmatters)

    That code only works to remove Autoptimize’s lazyload noscript CSS tags and only works if you use Autoptimize, but based on the HTML source of your homepage it looks like you don’t have Autoptimize active, so the code snippet seems pretty useless James?

    Plugin Author Optimizing Matters

    (@optimizingmatters)

    It looks like the noscript tags that are present in the HTML are from Smush (wp-smushit), maybe check with their support? 🙂

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘noscript tag’ is closed to new replies.