Hi @magedmoh94
You can just deactivate this plugin to back to normal.
If you want to remove “?ver” param from CSS/JS files you can activate this plugin and add this code to functions.php file:
prevent_browser_caching( array(
'assets_version' => false
) );
Hope it will help.
Thank you
Hi there,
First of all sorry for late reply.
By applying this snippet everything will return back to normal as if i haven’t installed the plugin from the beginning ?
Best Regards
Hi,
To return back to normal you need to remove prevent_browser_caching function (if you use it) and deactivate this plugin. This function just allows you to change “ver” param manually (not using configurations in the admin panel).
Best Regards,
Kostya
Hi,
Sorry for asking so much but there is miss understanding.
What steps do i need to take to revert everything back to normal and make everyfile show its main version. Not the version defined by the plugin ?
Step 1: deactivate the plugin.
Step 2: ?
What action else i need to do to reset the ver number defined by ur plugin to revert back to the oroginal version number for each file defined by each plugin and theme ?
Hi,
You just need to deactivate this plugin (only one step). If it does not work it is possible that some other plugin or theme makes changes to the versions of the assets.
Best Regards,
Kostya
Hi,
Thank you for your interest for help you were right.
I had a php snippet who does manages the assets but i can’t revert everything back to normal even after disabling the php snippet:
I have asked before on stackoverflow to hide the version of wordpress, css & javascript files but this result in a bug where when we update the plugins the browser couldn’t detect the new updated files so it still the same.
below the php snippet code someone helped before here and provided, we need to disable its function so we deleted it form the functions.php but the issue is still there, the ver= parameter still removed when we try to access the source code of the website from the browser, we flushed the cash and tried in icognito mode but still the same disabling the php snippet doesn’t make everything to back its normal.
// remove version from head
remove_action('wp_head', 'wp_generator');
// remove version from rss
add_filter('the_generator', '__return_empty_string');
// remove version from scripts and styles
function shapeSpace_remove_version_scripts_styles($src) {
if (strpos($src, 'ver=')) {
$src = remove_query_arg('ver', $src);
}
return $src;
}
add_filter('style_loader_src', 'shapeSpace_remove_version_scripts_styles', 9999);
add_filter('script_loader_src', 'shapeSpace_remove_version_scripts_styles', 9999);
We need to have the ver= parameter next to each css and javascript file as before to test that everything is back to normal then we will activate your plugin.
Best Regards
Hi,
I recommend searching for “style_loader_src” and “script_loader_src” in your project files and see if there is some filter that can remove “ver” param.
Hope it will help.
Best Regards,
Kostya