If you are having issues with Gutenberg editor, please simply download official Classic editor plugin.
Haven't found you're looking for? Visit goodstore howto web

query strings

  • Hello,

    i just removed the query strings from static resources. Now i get this:
    Revolution Slider Error: You have some jquery.js library include that comes after the revolution files js include.
    This includes make eliminates the revolution slider libraries, and make it not work.

    To fix it you can:
        1. In the Slider Settings -> Troubleshooting set option: Put JS Includes To Body option to true.
        2. Find the double jquery.js include and remove it.

    I made it trough the first step but then the grid isnt showing up and the slider loads really slow... Any idea?? Here are my function.php codes
    for Defer Parsing of Javascript and Remove query strings from static resources:

    <?php
    function defer_parsing_of_js ( $url ) {
    if ( FALSE === strpos( $url, '.js' ) ) return $url;
    if ( strpos( $url, 'jquery.js' ) ) return $url;
    return "$url.' async onload='myinit()";
    }
    add_filter( 'clean_url', 'defer_parsing_of_js', 11, 1 );
    /*** Remove Query String from Static Resources ***/
    function remove_cssjs_ver( $src ) {
     if( strpos( $src, '?ver=' ) )
     $src = remove_query_arg( 'ver', $src );
     return $src;
    }
    add_filter( 'style_loader_src', 'remove_cssjs_ver', 10, 2 );
    add_filter( 'script_loader_src', 'remove_cssjs_ver', 10, 2 );
       
    • All following comments are shown for registered users only!

      (3 more comments)
    This discussion has been solved.
    All Discussions