Forums / General Questions / header background problem with my 1.3.8 site

header background problem with my 1.3.8 site

Locked

Views: 743

Results 1 to 1 of 1
This thread is locked. New replies are disabled.
24 May 2008, 5:38 PM
#1
dothanbydesign avatar

dothanbydesign

New Zenner

Join Date:
Aug 2006
Posts:
35
Plugin Contributions:
0

header background problem with my 1.3.8 site

Completely removed the logo and am trying to have different header background for each catagory page (3 cat.) looked at a thread that gave info on how to do don't know if version is the problem but cannot make it work.
Changed stylesheet to this below and also changed tpl_header.php to the below info under the stylesheet code.

Now home page and 1st catagory show header_bg.jpg, catagory 2 & 3 show nothing, any suggestions?

#logoWrapper{

background-image: url(../images/header_bg.jpg);

background-repeat: repeat-x;

background-color: #ffffff;

height:300px;

}

#logoWrapper_19 {
background-image: url(../images/header_bg1.jpg);
background-repeat: repeat-x;
background-color: #ffffff;
height:300px;
}
#logoWrapper_5 {
background-image: url(../images/header_2.jpg);
background-repeat: repeat-x;
background-color: #ffffff;
height:300px;
}
#logoWrapper_13 {
background-image: url(../images/header_3.jpg);
background-repeat: repeat-x;
background-color: #ffffff;
height:300px;
}

<?php unset($logo_cpath); $logo_cpath[] = "19"; $logo_cpath[] = "5"; $logo_cpath[] = "13"; /* add as many $logo_cpath[] = ...; as you want */ ?> <div id="logoWrapper<?php if (array_search($_REQUEST['cPath'], $logo_cpath)) { echo '_' . $_REQUEST['cPath']; } ?>">
<div id="logo"><?php //echo '<a href="' . HTTP_SERVER . DIR_WS_CATALOG . '">' . zen_image($template->get_template_dir(HEADER_LOGO_IMAGE, DIR_WS_TEMPLATE, $current_page_base,'images'). '/' . HEADER_LOGO_IMAGE, HEADER_ALT_TEXT) . '</a>'; ?></div>