Different Colors

GK User
Thu Sep 27, 2012 11:22 am
Hello,

is there a possibility to display different mainbody background colors according to the choosen menu point?
An example:
When i choose "Home" the background of the mainbody is standard white, but if i move on to the menu point "Services" the mainbody is e.g blue and so on. I am not talking about the background color of the html-body, i am talking about the mainbody content.

I know that i could copy the template and make the according changes and the assignment at the template menu, but there must be another solution. Any suggestions?

Kind regards
User avatar
Senior Boarder

Konrad M
Thu Sep 27, 2012 11:31 am
Hi,
yes you can do it. You have to go to template settings to "Features" section. Here you will find 'Suffixes for pages' option. You need to check ID of menu item and add your suffix for this menu item. For example add suffix ' myservices' to services item. Then please add to override.css
Code: Select all
.myservices #gkContentMainbody {
background-color:#ffffff;
}

and set your own color value. Then repeat this for all menu items you want. Remember add diffrent suffix for each item. And remember to enable override.css option in template settings.
User avatar

GK User
Thu Sep 27, 2012 11:41 am
Hi

If you want to style only the component wrapper, them by adding "Page Class" suffix on "Page Display Options" panel should be enough. But i suppose that's not what you mean...

So you could go to Template Manager > Templates, click on "Gk_twn2 Details and Files" link and use copy template option by giving a new name (e.g.) "mytwn2"
screen1.png


Files are copied and you will have this warning:
screen2.png


So go to ../language/en-GB/ and copy this file "en-GB.tpl_gk_twn2.php" and rename to "en-GB.tpl_mytwn2"

Find on Template Manager this new template and them assign to a specific menu item.

Now you can work on your custom template style for your menu item on "mytwn2" template files.

Cheers
User avatar
Platinum Boarder

GK User
Thu Sep 27, 2012 11:48 am
Sorry.
Konrad solution is better.
I forgot this feature on the template.
User avatar
Platinum Boarder

GK User
Thu Sep 27, 2012 11:53 am
Thank you for your answers. Worked perfectly!

Very good support and templates.
User avatar
Senior Boarder


cron