Remove a ver parameter from a URL – WordPress

I’m currently working on a WordPress website and I’m running into an issue.

The code in my functions file to enqueue the .js file is:

wp_enqueue_script( 'esro', '', '', false );

However, when I look at the source code for my site, it’s showing the following URL for the .js file:

<script type="text/javascript" src=""></script>

I have been told that the problems I’m having might be down to the perimeter at the end of this URL: ?ver=4.7.3 and to remove it.

I guess I would rather stop it from being there in the first place than add more code to remove it but I’m not even sure thats an option?

So firstly, how is it getting there and where is it coming from? Secondly, how can I remove it?

Read more here: Remove a ver parameter from a URL – WordPress

Leave a Reply

Your email address will not be published. Required fields are marked *