Shape 5

Joomla Templates => Zoka Transports - Club => : webhelpus January 09, 2015, 02:14:23 PM



: Adding Themes
: webhelpus January 09, 2015, 02:14:23 PM
You have a dark theme and a light theme.  I'd like to change that and have a spring, fall, winter themes.  I know how to add the choices to the Vertex menu, but how do I get it to choose the right theme rather than the dark or the light?


: Re: Adding Themes
: jonahh January 09, 2015, 02:40:40 PM
Hello,

This would require custom coding to achieve this.  You will notice we have a separate dark.css file that overwrites a lot of the default template.css file settings to achieve the dark look.  You would need to do the same for you spring, fall and winter themes.  In the index.php file you'll see how we called the dark.css file and lastly in the xml/specific.xml file you'll see how we added it to the backend of Vertex.

Regards,


: Re: Adding Themes
: webhelpus January 09, 2015, 02:45:42 PM
I take it that the
:
<?php if ($s5_theme == "dark") { ?>	

that value is in the xml/specific.xml



: Re: Adding Themes
: mikenicoll January 10, 2015, 04:57:55 PM
Hello,

That is where the trigger code is written but the toggle button is built directly in the Template Manager.


: Re: Adding Themes
: webhelpus January 19, 2015, 01:55:53 PM
Where are the $s5_highlightcolor and $s5_highlightcolor2 variables declared.  I see where
:
<field name="xml_s5_highlightcolor" type="text:6:6" default="" label="TPL_HIGHLIGHTCOLOR_LABEL" description="TPL_HIGHLIGHTCOLOR_DESC" />

in the Specific.xml file, but where does that variable get declared?


: Re: Adding Themes
: mikenicoll January 19, 2015, 11:32:31 PM
Hello,

It is an echo variable from the index.php file that calls whatever the input is in the Template Manager.


: Re: Adding Themes
: webhelpus January 20, 2015, 12:10:38 AM
Hello,

It is an echo variable from the index.php file that calls whatever the input is in the Template Manager.

I needed a different highlight and highlight2 colors based on the theme and found a way to do that.  Thank you.


: Re: Adding Themes
: mikenicoll January 22, 2015, 12:09:38 AM
NP