Jump to content

Change Version Hash on JS files


Andreas H

Recommended Posts

Hello.

Just a quick question: Where and how can I change the {$versionHash} of my header files?

I can't seem to update the files without changing the hash.

E.G: <script src="{$WEB_ROOT}/templates/{$template}/assets/js/main.js?v={$versionHash}"></script>

 

Thanks,

Andreas.

Link to comment
Share on other sites

  • 4 weeks later...

I've got the same issue but with the all.min.css not working correctly when I make changes to it with the ?v={$versionHash} in the template.

the custom.css won't work so only way I can change the logo size is via the all.min.css

<link href="{$WEB_ROOT}/templates/{$template}/css/all.min.css?v={$versionHash}" rel="stylesheet">  - Logo size stays at default height of 50px

<link href="{$WEB_ROOT}/templates/{$template}/css/all.min.css" rel="stylesheet"> - New Logo size work in the all.min.css.

I've only had the issue until I upgraded to version 8, so maybe ?v={$versionHash} is putting in a incorrect value?

 

Steve

 

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated