Changing the style of elements in the storefront
We no longer maintain the Knowledge Base since version 4.3.x. All the latest user and developer documentation for 4.3.x and newer versions is now available at docs.cs-cart.com.
To change the style (font, color) of some design elements (links, text, etc.):
- Find out the name of the class used for the desired element. You can do it by using a special tool (e.g. Firebug) or by viewing the source of the page on which this element is located:
- Open the source using the Page source option in your browser.
- Find the text whose look and feel you need to change.
- Remember or copy the class name that is defined for this text.
For example: you need to change the "Welcome" title displayed on the home page. Open the page source of your home page and find this text. It will look like this:
<h1 class="mainbox-title"><span>Welcome</span></h1>
You will see the class name before the text. It is "mainbox-title" for this example.
- Create the following directories path in the root directory of your CS-Cart installation:
skins/[CUSTOMER_ACTIVE_SKIN]/customer/addons/my_changes/hooks/index, where [CUSTOMER_ACTIVE_SKIN] is an active skin of your storefront. - Create the styles.post.tpl file in the skins/[CUSTOMER_ACTIVE_SKIN]/customer/addons/my_changes/hooks/index directory with the following content:
<link href="{$config.skin_path}/addons/my_changes/styles.css" rel="stylesheet" type="text/css" />
- Create the styles.css file in the skins/[CUSTOMER_ACTIVE_SKIN]/customer/addons/my_changes directory with the desired style parameters for your class.
For example:
.mainbox-title span {
color: #2de2de;
font: bold 26px Arial, Helvetica, sans-serif;
} - To add or change an image for some element, specify the URL to the image in the following way:
url('../../images/icons/calendar_previous.gif')
For example, to change the background image for some element, put a new image to the skins/[CUSTOMER_ACTIVE_SKIN]/customer/images directory and specify the background parameter for this element in the following way:
background: url('../../images/icons/calendar_previous.gif');
- Save the file.
NOTE: If you need to modify the style of links in the JavaScript menu (Emenu) of the Categories sidebox you should modify the dropdown.css file located in the skins/[CUSTOMER_ACTIVE_SKIN]/customer directory of your CS-Cart installation.
To change the style (font, color) of some design elements (links, text, etc.):
- Find out the name of the class used for the desired element. You can do it by using a special tool (e.g. Firebug) or by viewing the source of the page on which this element is located:
- Open the source using the Page source option in your browser.
- Find the text whose look and feel you need to change.
- Remember or copy the class name that is defined for this text.
For example: you need to change the "Welcome" title displayed on the home page. Open the page source of your home page and find this text. It will look like this:
<h1 class="mainbox-title"><span>Welcome</span></h1>
You will see the class name before the text. It is "mainbox-title" for this example.
- Create the following directories path in the root directory of your CS-Cart installation:
skins/[CUSTOMER_ACTIVE_SKIN]/customer/addons/my_changes/hooks/index, where [CUSTOMER_ACTIVE_SKIN] is an active skin of your storefront. - Create the styles.post.tpl file in the skins/[CUSTOMER_ACTIVE_SKIN]/customer/addons/my_changes/hooks/index directory with the following content:
<link href="{$config.skin_path}/addons/my_changes/styles.css" rel="stylesheet" type="text/css" />
- Create the styles.css file in the skins/[CUSTOMER_ACTIVE_SKIN]/customer/addons/my_changes directory with the desired style parameters for your class.
For example:
.mainbox-title span {
color: #2de2de;
font: bold 26px Arial, Helvetica, sans-serif;
} - To add or change an image for some element, specify the URL to the image in the following way:
url('../../images/icons/calendar_previous.gif')
For example, to change the background image for some element, put a new image to the skins/[CUSTOMER_ACTIVE_SKIN]/customer/images directory and specify the background parameter for this element in the following way:
background: url('../../images/icons/calendar_previous.gif');
- Save the file.
NOTE: If you need to modify the style of links in the JavaScript menu (Emenu) of the Categories sidebox you should modify the dropdown.css file located in the skins/[CUSTOMER_ACTIVE_SKIN]/customer directory of your CS-Cart installation.
To change the style (font, color) of some design elements (links, text, etc.):
- Find out the name of the class used for the desired element. You can do it by using a special tool (e.g. Firebug) or by viewing the source of the page on which this element is located:
- Open the source using the Page source option in your browser.
- Find the text whose look and feel you need to change.
- Remember or copy the class name that is defined for this text.
For example: you need to change the "Welcome" title displayed on the home page. Open the page source of your home page and find this text. It will look like this:
<h1 class="mainbox-title"><span>Welcome</span></h1>
You will see the class name before the text. It is "mainbox-title" for this example.
- Create the following directories path in the root directory of your CS-Cart installation:
skins/[CUSTOMER_ACTIVE_SKIN]/customer/addons/my_changes/hooks/index, where [CUSTOMER_ACTIVE_SKIN] is an active skin of your storefront. - Create the styles.post.tpl file in the skins/[CUSTOMER_ACTIVE_SKIN]/customer/addons/my_changes/hooks/index directory with the following content:
<link href="{$config.skin_path}/addons/my_changes/styles.css" rel="stylesheet" type="text/css" />
- Create the styles.css file in the skins/[CUSTOMER_ACTIVE_SKIN]/customer/addons/my_changes directory with the desired style parameters for your class.
For example:
.mainbox-title span {
color: #2de2de;
font: bold 26px Arial, Helvetica, sans-serif;
} - To add or change an image for some element, specify the URL to the image in the following way:
url('../../images/icons/calendar_previous.gif')
For example, to change the background image for some element, put a new image to the skins/[CUSTOMER_ACTIVE_SKIN]/customer/images directory and specify the background parameter for this element in the following way:
background: url('../../images/icons/calendar_previous.gif');
- Save the file.
NOTE: If you need to modify the style of links in the JavaScript menu (Emenu) of the Categories sidebox you should modify the dropdown.css file located in the skins/[CUSTOMER_ACTIVE_SKIN]/customer directory of your CS-Cart installation.
To change the style (font, color) of some design elements (links, text, etc.):
- Find out the name of the class used for the desired element. You can do it by using a special tool (e.g. Firebug) or by viewing the source of the page on which this element is located:
- Open the source using the Page source option in your browser.
- Find the text whose look and feel you need to change.
- Remember or copy the class name that is defined for this text.
For example: you need to change the "Welcome" title displayed on the home page. Open the page source of your home page and find this text. It will look like this:
<h1 class="mainbox-title"><span>Welcome</span></h1>
You will see the class name before the text. It is "mainbox-title" for this example.
- Create the following directories path in the root directory of your CS-Cart installation:
skins/[CUSTOMER_ACTIVE_SKIN]/customer/addons/my_changes/hooks/index, where [CUSTOMER_ACTIVE_SKIN] is an active skin of your storefront. - Create the styles.post.tpl file in the skins/[CUSTOMER_ACTIVE_SKIN]/customer/addons/my_changes/hooks/index directory with the following content:
<link href="{$config.skin_path}/addons/my_changes/styles.css" rel="stylesheet" type="text/css" />
- Create the styles.css file in the skins/[CUSTOMER_ACTIVE_SKIN]/customer/addons/my_changes directory with the desired style parameters for your class.
For example:
.mainbox-title span {
color: #2de2de;
font: bold 26px Arial, Helvetica, sans-serif;
} - To add or change an image for some element, specify the URL to the image in the following way:
url('../../images/icons/calendar_previous.gif')
For example, to change the background image for some element, put a new image to the skins/[CUSTOMER_ACTIVE_SKIN]/customer/images directory and specify the background parameter for this element in the following way:
background: url('../../images/icons/calendar_previous.gif');
- Save the file.
NOTE: If you need to modify the style of links in the JavaScript menu (Emenu) of the Categories sidebox you should modify the dropdown.css file located in the skins/[CUSTOMER_ACTIVE_SKIN]/customer directory of your CS-Cart installation.
To change the style (font, color) of some design elements (links, text, etc.):
- Find out the name of the class used for the desired element. You can do it by using a special tool (e.g. Firebug) or by viewing the source of the page on which this element is located:
- Open the source using the Page source option in your browser.
- Find the text whose look and feel you need to change.
- Remember or copy the class name that is defined for this text.
For example: you need to change the "Welcome" title displayed on the home page. Open the page source of your home page and find this text. It will look like this:
<div class="mainbox-title">Welcome</div>
You will see the class name before the text. It is "mainbox-title" for this example.
- Using a text editor open the styles.css file located in the skins/[CUSTOMER_ACTIVE_SKIN]/customer directory of your CS-Cart installation, where [CUSTOMER_ACTIVE_SKIN] is an active skin of your storefront.
NOTE: If you need to modify the style of links in the JavaScript menu (Emenu) of the Categories sidebox you should open the vmenu.css file located in the skins/[CUSTOMER_ACTIVE_SKIN]/customer directory of your CS-Cart installation.
- Find the class name (e.g. mainbox-title) and change the desired parameters for it:
For example: The code for the "mainbox-title" class for the "Basic" skin will look like this:
color: #3da5ee;
font: 22px Arial, Helvetica, sans-serif;
padding: 6px 0px 7px 0px;
} - Save the file.
To change the style (font, color) of some design elements (links, text, etc.):
- In the administration panel go to Design > Themes.
- Choose the desired layout for the currently used theme and click the Visual editor button near its name.
To change the font of elements:
- In the left panel of the opened editor find the Customize section and choose Fonts from the drop-down menu.
- Find the required element and change the font, its style and size with the appropriate controls.
- Click the Save button.
To change the color of some elements:
- In the left panel of the opened editor find the Customize section and choose Colors from the drop-down menu.
- Find the required element and change its color by clicking on the color field. In the opened window choose one of the given colors or define color in hexademical value in the special field. Click the Choose button.
- Click the Save button.
To change the background color of some style elements:
- In the left panel of the opened editor find the Customize section and choose Backgrounds from the drop-down menu.
- Find the required element and change its color by clicking on the color field. In the opened window choose one of the given colors or define color in hexademical value in the special field. Click the Choose button. You can also choose pattern for the background. Choose one of the given patterns from the drop-down list or click the gear icon to the right to upload your own image for the background. In the opened section click Browse the choose an image from your local computer. Use the given controls to set up your background.
- Click the Save button.
To change the style (font, color) of some design elements (links, text, etc.):
- In the administration panel go to Design > Themes.
- In the currently used theme click the Visual editor button next to the layout you want to change.
To change the font of elements:
- In the Theme editor panel on the left find the Customize section and select Fonts in the drop-down menu.
- Choose the element you want to change and define the font, style and size with the help of appropriate controls.
- Click the Save button.
To change the color of some elements:
- In the Theme editor panel on the left find the Customize section and choose Colors in the drop-down menu.
- Find the element you want to change and change its color by clicking on the color field. In the opened window choose one of the given colors or define the color in hexademical value in the special field. Click the Choose button.
- Click the Save button.
To change the background color of some style elements:
- In the Theme editor panel on the left find the Customize section and choose Backgrounds in the drop-down menu.
- Choose the element and change the background color by clicking on the color field. In the opened window choose one of the given colors or define the color in hexademical value in the special field. Click the Choose button.
- Click the Save button.
You can also choose patterns for the background. Choose one of the given patterns in the drop-down menu or click the gear icon to the right to upload your own image for the background. In the opened section click Browse and choose an image from your local computer. Use the given controls to set up your background.
To change the style (font, color) of some design elements (links, text, etc.):
- In the administration panel go to Design > Themes.
- In the currently used theme click the Visual editor button next to the layout you want to change.
To change the font of elements:
- In the Theme editor panel on the left find the Customize section and select Fonts in the drop-down menu.
- Choose the element you want to change and define the font, style and size with the help of appropriate controls.
- Click the Save button.
If you have problems with displaying diacritic symbols when using some fonts, refer to this article.
To change the color of some elements:
- In the Theme editor panel on the left find the Customize section and choose Colors in the drop-down menu.
- Find the element you want to change and change its color by clicking on the color field. In the opened window choose one of the given colors or define the color in hexademical value in the special field. Click the Choose button.
- Click the Save button.
To change the background color of some style elements:
- In the Theme editor panel on the left find the Customize section and choose Backgrounds in the drop-down menu.
- Choose the element and change the background color by clicking on the color field. In the opened window choose one of the given colors or define the color in hexademical value in the special field. Click the Choose button.
- Click the Save button.
You can also choose patterns for the background. Choose one of the given patterns in the drop-down menu or click the gear icon to the right to upload your own image for the background. In the opened section click Browse and choose an image from your local computer. Use the given controls to set up your background.
To change the style (font, color) of some design elements (links, text, etc.):
- In the administration panel go to Design > Themes.
- In the currently used theme click the Visual editor button next to the layout you want to change.
To change the font of elements:
- In the Theme editor panel on the left find the Customize section and select Fonts in the drop-down menu.
- Choose the element you want to change and define the font, style and size with the help of appropriate controls.
- Click the Save button.
If you have problems with displaying diacritic symbols when using some fonts, refer to this article.
To change the color of some elements:
- In the Theme editor panel on the left find the Customize section and choose Colors in the drop-down menu.
- Find the element you want to change and change its color by clicking on the color field. In the opened window choose one of the given colors or define the color in hexademical value in the special field. Click the Choose button.
- Click the Save button.
To change the background color of some style elements:
- In the Theme editor panel on the left find the Customize section and choose Backgrounds in the drop-down menu.
- Choose the element and change the background color by clicking on the color field. In the opened window choose one of the given colors or define the color in hexademical value in the special field. Click the Choose button.
- Click the Save button.
You can also choose patterns for the background. Choose one of the given patterns in the drop-down menu or click the gear icon to the right to upload your own image for the background. In the opened section click Browse and choose an image from your local computer. Use the given controls to set up your background.
You cannot upload your own patterns for the default style. Create a new one first. To do it, click the Save button near the style name and type the new style name in the pop up window. It will be saved as the new style.