News:

You may pay someone to create your store, or you visit our seminar and become a professional yourself with the silver certification

Main Menu

Upgrading VM

Started by gofer123, April 14, 2014, 01:54:47 AM

Previous topic - Next topic

gofer123

Hi all,
If I have a site in VM v2.0 and want to upgrade to the latest version of VM will the css style changes I have made, will they be over ridden by the upgrade and style changed back to the default VM styling?
Thanks in advance.

JoomTut

#1
- Yes. If the file has been modified directly.
- No. If the file has been modified by creating template override.
More information about Joomla! template override: http://docs.joomla.org/How_to_override_the_output_from_the_Joomla!_core
http://www.joomtut.com - How to Joomla!
Joomla! & VirtueMart Pro Support.
http://www.joomtut.com/joomla-clip.html - 14 steps to creating a Joomla! website with video clip tutorials

gofer123


gofer123

Just thinking about that, the css file is: vmsite-ltr.css which is quite separate from the Joomla template files. Do I still need an template override?
If I was to duplicate the Joomla template and name it something different wouldn't it then be safe from being overwritten?
cheers

jenkinhill

I see some confusion here. If you have only made edits to vmsite-ltr.css rather than make css overrides (different from template overrides) then the easiest way to keep those style changes is to  make a copy of your edited css file, rename it (I use custom.css) and edit the Joomla template index.php file to load that file as the last event in the head area. This will then override the new  vmsite-ltr.css that will be created in an upgrade, and any fine tuning can be made within the custom.css file.

I use a custom.css file in just about every Joomla site I build.
Kelvyn
Lowestoft, Suffolk, UK

Retired from forum life November 2023

Please mention your VirtueMart, Joomla and PHP versions when asking a question in this forum

gofer123

Many thanks, I understand what I've got to do now.
cheers