Theme Colors (v. 2.94+)
Theme Colors allow store owners to change colors in sections of the site template, even if they don't have permission to edit that template.
Example #1: The master administrator wants to create a customized section in her Butterfly Dreams template that the store owner can edit.
-
The master administrator creates a pink section in her 'Butterfly_Dreams.htm' template, using HTML:
All about butterflies here⦠-
She adds a Theme Color by doing one of the following:
Method A - Add it to the template configuration file
-
Open Butterfly_Dreams.php in the /template/ folder.
-
At the very bottom of the file, add:
-
$themecolorlist[] = "Butterfly Box; .butterfly_section; 000000; FF99FF; images/pinkbutterfly.png";
Where the $themecolorlist[] entry is in the format:
Some Theme Color Name; .classname; textcolor; backgroundcolor; backgroundimage (relative to the main site)
You do not have to add all color and image values (only the theme color name and class are required), but you must keep the semicolons in place.
Note that this style will only apply to the Butterfly_Dreams.htm template.
- OR -
Method B - Add it via the storeadmin area
-
Log in to the storeadmin area with the master key
-
View Theme Colors
-
Add the following:
-
Theme Entry : Butterfly Box
Class Name : .butterfly_section
Template Name : Butterfly Dreams
Bkgd Image : images/pinkbutterfly.png
Text Color : 000000
Bkgd Color : FF99FF
-
-
The store owner can now edit the 'Butterfly Box' background/text color and background image; when she updates the settings, the color of that section in the web site will immediately update as well.
Example #2: The master administrator wants to allow the store owner to change the background color of the footer in any template.
-
The master administrator adds a Theme Color by doing one of the following:
Method A - Add it to the template configuration file
-
Open Butterfly_Dreams.php in the /template/ folder.
-
At the very bottom of the file, add:
-
$themecolorlist[] = "Footer; footer";
Where the $themecolorlist[] entry is in the format:
Some Theme Color Name; tagname
In this case, we're not specifying a default text color, background color, or background image. The color or image change won't be applied unless the store owner adds a color or image to the Footer entry, so the template should set a default color value in the template itself. - Add the same $themecolorlist entry to the bottom of every template. (Because the entry only applies to the template that corresponds to the configuration file that holds the entry.)
- OR -
Method B - Add it via the storeadmin area
-
Log in to the storeadmin area with the master key
-
View Theme Colors
-
Add the following:
-
Theme Entry : Footer
Class Name : footer
Template Name : All Templates
Bkgd Image :
Text Color :
Bkgd Color : FFFFFF
-
-
The store owner can now edit the 'Butterfly Box' background/text color and background image; when she updates the settings, the color of that section in the web site will immediately update as well, on all templates.
Note that you must add a dot in front of the Class Name to represent a class, and # in front of the Class Name to represent an id. Or skip both to reference an HTML element. (For instance, a class name of header will affect the color of any template's header, if that template uses a