BJ Venus: Change your sites’ theme by Menu Item
Hi,
Some of you asked “how to change the color of Venus template according to the page” as seen on our demo page http://byjoomla.com/venus . Yeah you can do it easily. You need to edit slightly the file bj_venus/index.php
You would find this line
$template_color = $this->params->get("templateColor","blue");
It is used to determine the color set in backend. Now you add these lines of code below the above line:
$itemId = JRequest::getVar('Itemid','');
switch($itemId){
case 58: $template_color = 'blue';break;
case 59: $template_color = 'green';break;
case 60: $template_color = 'red';break;
case 61: $template_color = 'orange';break;
case 62: $template_color = 'purple';break;
case 63:
case 78: $template_color='brown';break;
}
That will change the color of your page according to your menu item ID. Now it’s your turn to change the ids (58, 59, …) to the value of your menu items.
hadoanngoc