New Zenner
- Join Date:
- Jan 2008
- Location:
- US
- Posts:
- 5
- Plugin Contributions:
- 0
Header change according to category
Could someone please tell me where I am messing up at? I have went through and made all the modifications as stated... but the logo in the header.php file under /includes/languages/english/ seems to be overriding the /includes/templates/template_default/common/
here is what I’ve got so far...
<!--bof-branding display-->
<?php
unset($logo_cpath);
$logo_cpath[] = "1";
$logo_cpath[] = "1_3_8";
$logo_cpath[] = "1_3_9";
$logo_cpath[] = "1_5_10";
$logo_cpath[] = "1_5_11";
$logo_cpath[] = "1_6_12";
$logo_cpath[] = "1_6_13";
$logo_cpath[] = "1_7_14";
$logo_cpath[] = "1_7_15";
$logo_cpath[] = "16";
$logo_cpath[] = "17";
$logo_cpath[] = "18";
/* add as many $logo_cpath[] = "..."; as you want */
?>
<div id="logoWrapper<?php if (array_search($_REQUEST['cPath'], $logo_cpath)) { echo '_' . $_REQUEST['cPath']; } ?>">
CSS
#logoWrapper_1{
background-image: url(../images/logo_black.gif;
background-repeat: repeat-x;
background-color: #FFFFFF;
height:150px;
}
#logoWrapper_1_3_8{
background-image: url(../images/logo_wb.gif;
background-repeat: repeat-x;
background-color: #FFFFFF;
height:150px;
}
#logoWrapper_1_3_9{
background-image: url(../images/logo_wp.gif;
background-repeat: repeat-x;
background-color: #FFFFFF;
height:150px;
}
#logoWrapper_1_5_10{
background-image: url(../images/logo_blue.gif;
background-repeat: repeat-x;
background-color: #FFFFFF;
height:150px;
}
#logoWrapper_1_5_11{
background-image: url(../images/logo_pink.gif;
background-repeat: repeat-x;
background-color: #FFFFFF;
height:150px;
}
#logoWrapper_1_6_12{
background-image: url(../images/logo_blue.gif;
background-repeat: repeat-x;
background-color: #FFFFFF;
height:150px;
}
#logoWrapper_1_6_13{
background-image: url(../images/logo_pink.gif;
background-repeat: repeat-x;
background-color: #FFFFFF;
height:150px;
}
#logoWrapper_1_7_14{
background-image: url(../images/logo_red.gif;
background-repeat: repeat-x;
background-color: #FFFFFF;
height:150px;
}
#logoWrapper_1_7_15{
background-image: url(../images/logo_purple.gif;
background-repeat: repeat-x;
background-color: #FFFFFF;
height:150px;
}
#logoWrapper_16{
background-image: url(../images/logo_white.gif;
background-repeat: repeat-x;
background-color: #FFFFFF;
height:150px;
}
#logoWrapper_17{
background-image: url(../images/logo_green.gif;
background-repeat: repeat-x;
background-color: #FFFFFF;
height:150px;
}
#logoWrapper_18{
background-image: url(../images/logo_salmon.gif;
background-repeat: repeat-x;
background-color: #FFFFFF;
height:150px;
}
I appreciate any help anyone can offer!