Edit CSS so that Changes not erased after upgrade

Hello everyone, please is there a way I can edit Boonex Dolphin files and its template CSS in a way my changes will not be lost after Dolphin or its templates are upgraded? In some CMS such as Joomla, you can create an override to contain your changes and when Joomla itself or its templates are upgraded, your changes remain intact and not deleted. I hope to get your response soon. Thanks

Quote · 11 Sep 2016

What is the name of the template folder are you editing?

https://dolphin-techs.com - Skype: Dolphin Techs
Quote · 11 Sep 2016

Hi, thanks for replying. The name of the template folder I am editing is /template/base/css

Quote · 16 Sep 2016

You should make a copy of tmpl_uni or tmpl_evo or both and rename them to something else

tmpl_mytemplate1    tmpl_mytemplate2 ....  

 

Then make your changes as needed to those template folders.  

Then when it comes time to upgrade you can do so without losing your changes. 

https://dolphin-techs.com - Skype: Dolphin Techs
Quote · 17 Sep 2016

Hello dolphin_jay,

Thank you for the guide. Let's say for instance I am making changes to only /templates/base/css/general.css.

If I copy for instance tmpl_uni and rename it to tmpl_mytemplate1, that means tmpl_mytemplate1 will contain all the files and folders that tmpl_uni contains

(a) I just want to make changes to general.css file only. Can I delete all the other folders and files leaving just the general.css file in tmpl_mytemplate1?

(b) Inside the tmpl_mytemplate1, what will be the path of the general.css file I am editing? tmpl_mytemplate1/templates/base/css/general.css or it can simply be /templates/general.css?

(c) Once I have  tmpl_mytemplate1 containing the customized general.css file in the right folder, will that be all that is needed for my customized general.css file to override the default  tmpl_uni's general.css file or what else will I have to do?

 

Once again thank you.

Quote · 20 Sep 2016

a) you should leave the scripts folder and images folder because you need to edit a file called bxTemplateName.php in /templates/mytemplate1/scripts/  folder:

$sTemplName = 'UNI';  

<<<  change UNI to what ever you want to name it.

<<<  Must not be the same name as any other template you have... 

 

b) /templates/tmpl_mytemplate/css/general.css  

you must include this line in your css files at the top:

@import url(../../base/css/general.css);  

<<<  change general.css to what ever css file name you use

 

c) yes pretty much - you can set this template to the default in administration - settings - template  if you want.

https://dolphin-techs.com - Skype: Dolphin Techs
Quote · 20 Sep 2016
 
 
Below is the legacy version of the Boonex site, maintained for Dolphin.Pro 7.x support.
The new Dolphin solution is powered by UNA Community Management System.