Remove query strings from static resources

I’ve used this code and it removed some query strings, but didn’t remove the query strings for the revolution slider. Can someone please help me?

Code Used:

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 );

Hi There,

Thanks for writing in! You need optimization plugins to optimize your WordPress site. A theme and plugins not designed to optimize a WordPress site won’t do this for you. Also, optimization consultation is outside the scope of our support. You might want to check out services such as (https://wpspeedguru.com/).

Also we do have a performance guide at (https://theme.co/apex/forum/t/customizations-performance/210) but please note that it is not a one size fits all setup. You will need to configure a performance plugin specific to your host and overall setup.

Thank you for understanding.

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.