Support » Plugin: Remove Query Strings From Static Resources » Some strings are strong ;-)

Viewing 4 replies - 1 through 4 (of 4 total)
  • Sorry about that, hopefully there will be time for a update of this plugin soon.

    If you know some basic php you can use this code in your functions.php to get rid of the last query strings.

    function _remove_query_strings_rev( $src ){
    	$rqs = explode( '?rev', $src );
            return $rqs[0];
    }
    add_filter( 'script_loader_src', '_remove_query_strings_rev', 15, 1 );
    add_filter( 'style_loader_src', '_remove_query_strings_rev', 15, 1 );
    Thread Starter mr.brownstone

    (@mrbrownstone-1)

    Thanks. It works fine now.

    sercai

    (@sercai)

    Hello,

    Any news on the plugin update ?

    I have the same problem as mr.brownstone.

    Thanks for the effort

    Hi there,

    after updating the functions.php with above mentioned code, only the query strings of the .php and .css query of the revslisder plugin were removed. These (.js) files however are still not undone of their query strings:

    • /wp-content/plugins/revslider/rs-plugin/js/jquery.themepunch.plugins.min.js?rev=4.3.8
    • /wp-content/plugins/revslider/rs-plugin/js/jquery.themepunch.revolution.min.js?rev=4.3.8

    Also, there are some font files used by my theme which query strings aren’t removed:

    • /wp-content/themes/x/framework/fonts/font_awesome/font-awesome.woff?v=4.0.3
    • /wp-content/themes/x/framework/fonts/foundation_social/foundation-social.woff?v=1.0

    Any suggestions perhaps…?

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Some strings are strong ;-)’ is closed to new replies.