Welcome, Guest
Username: Password: Remember me
Use this Category for your support questions about Responsive Joomla Virtuemart Template - CoolMart (SKU# FLEX-00014)

TOPIC: Change name css customization file custom.css

Change name css customization file custom.css 6 years 6 months ago #12578

I have one problem. I think it´s a normal problem and i think that you have some solution.

For example on the web www.yomeloreparo.com

If i modified the file custom.css the clients that have see the web and not delete the cache of navigator not see the css changes because the file isn´t updated. To see the changes i think if i change the custom.css name file, for example to custom_v1.css the navigator wait custom.css and now it need custom_v1.css file and the users see the modifications in css custom_v1.css file.

For example, i can to have on the future

custom_v1.css
custom_v2.css
custom_v3.css
custom_v4.css

i think that to do this i need to change template´s code

I wait your answer

thanks
The administrator has disabled public write access.

Change name css customization file custom.css 6 years 6 months ago #12592

Hi,

Yes, you are right. Users won't see the CSS changes until they remove the "browser history", because CSS files are static files and they are cached in the user's computer for certain amount of time (1 day, 3 days or 1 week -- depends on your server's cache-expiration time)

Renaming the CSS file is one way of eliminating this problem, so users will see the changes right away.
After renaming the CUSTOM.CSS file name, you should also edit the PHP file to load that new CSS file.

- Open this PHP file:
/templates/flexible_coolmart/layouts/template.config.php

- Find this line:
$this['asset']->addFile('css', 'css:custom.css');

and replace it with this:
$this['asset']->addFile('css', 'css:custom_v1.css');
or
$this['asset']->addFile('css', 'css:custom_v2.css');

and so on..

Regards.
Last Edit: 6 years 6 months ago by Support.
The administrator has disabled public write access.
Time to create page: 0.152 seconds

MaterialMart

for Virtuemart 3

Google's Material Design has finally arrived to Virtuemart

Virtumart Template - MaterialMart Virtumart Template - CleanMart Virtumart Template - CleanMart Virtumart Template - CleanMart

Fully responsive!

Buy Now   |   Live Demo