How to fix your template to add css-class-suffix
You are probably using a 3rd party template which uses a module-override which is not parsing the module css-class-suffix properly. Templates by YOOtheme and some Artiseer templates seem to have this issue. What some templates do wrong is that they totally ignore the css-class-suffix as set in the module configuration (try it!).
The fixes underneath will basically add the suffix to the style, and giving frontend-developers control back over style.
Artiseer
Different versions of Artiseer produce different types of module-overrides. So you need to check with which version of Artiseer the template is made, and do the alteration(s) for that version to make the template stop ignoring any extra css-class-suffix.
Templates made with:
- Artiseer version 3. No alterations needed!
- Artiseer version 2.5
- Artiseer version 2.4
- Artiseer version lower then 2.4
Find out which version the template is made with.
Artiseer version 2.5
file: /templates/template_name/html/modules.php
line 11
replace with
AND
line 41
AND
file: /templates/template_name/functions.php
line 134
replace with
AND
line 145
replace with
Artiseer version 2.4
file: /templates/template_name/html/modules.php
(about line 17)replace by:
AND
(about line 34)
replace by:
AND
(about line 25)
change to:
AND
(about line 46)
change to:
AND
(about line 48)
change to:
ANDfile: /templates/template_name/functions.php
find this code:
replace by:
AND
(in the same file a few lines under that)
replace by:
file: /templates/template_name/html/mod_mainmenu/default.php
line 137:
change to
Artiseer version lower then 2.4
file: /templates/template_name/html/modules.php
find this line:
change to:
That should make the hiding of modules work.
Find out which version of Artiseer a template has been made
- open file: /templates/template_name/html/modules.php
- search for this code around line 33:
if the code is in there the template seems to be made with version 3. No alterations are needed! - search for this code around line 11:
if the code is in there the template seems to be made with version 2.5. Alterations. - search for this code around line 17:
if the code is in there the template seems to be made with version 2.4. Alterations. - search for this code:
if the code is in there the template seems to be made with a version lower then 2.4. Alterations. - If you can't find any of these codes, please contact us. We will help you fix your template.
JoomSpirit
file: /templates/template_name/html/modules.php
try find this line. IT IS IN THERE 2 TIMES:
change it on both places to:
AND
try find this line:
change to:
YooTheme
Yootheme template's come in 3 flavours, with the Warp-framework, without the Warp-framework and the evolution-template.
To check if your template uses the Warp-framework check if this file exists in your site:
templates/template_name/layouts/module.php
If the above file exists, your template uses the Warp-framework. If the file does not exist in your site, your template is not using the Warp-framework.
In templates NOT using YOOtheme's Warp CMS theme framework:
file: templates\template_name\html\modules.php
somewhere at the bottom of the code:
replace with:
In templates using YOOtheme's Warp CMS theme framework:
file: templates/template_name/layouts/module.php
line: 164 ( or somewhere at bottom of the code)
replace with:
If you are using the Corona-template also change this code:
line: 39
replace with:
file: templates/yoo_evolution/html/module.php
line: 23
replace with:
AND
replace with