There are many posts about "$this_is_home_page" and this is the key....it will be either true or false depending on whether the user is on the home page of the store or not.
So, in your tpl_header.php file, you can add some PHP code that checks for the value of $this_is_home_page, and displays XX if it is true, and regular output otherwise.
There are several other forum posts which talk about $this_is_home_page for many different implementations.
Zen-Venom Get Bitten
Hello all, I was after two separate headers as well.
One for the main page and a different one for everything else.
My two are basically the same but different size images.
I'm using the latest zen-cart and cherry zen template (fluid site)
I'm new to all this, but thought I would post what I found worked for me.
Of course there are probably different was to do this and your files might be different than mine, but this might help other newbies.
First obviously, I created and uploaded the two image files.
Then in includes/languages/english/cherry_zen/header.php I added one new define
exmp_header.doc
Then in includes/templates/cherry_zen/common/tpl_header.php, modified the following lines
exmp_tpl_header.doc
Of course your file structure will probably be different, but those are the two files that I modified to get it to work for me.
I hope this helps some one,
David
One more note, I didn't create a new define for the main page image alt text, but I'm sure you could if you wanted to.
Sorry guys, my newbieness is showing.
I was trying to put the file excerpts into those little boxes.
Her is a cut and paste.
header.php
// added defines for header alt and text
define('HEADER_ALT_TEXT', 'Country to the Core Logo');
define('HEADER_SALES_TEXT', '');
define('HEADER_LOGO_WIDTH', '500px');
define('HEADER_LOGO_HEIGHT', '550px');
define('HEADER_LOGO_IMAGE', 'header_img.png');
define('MAIN_PAGE_HEADER_LOGO_IMAGE', 'main_page_header_img.png');
and tpl_header
<!--bof-branding display-->
<div id="logoWrapper" class="clearfix">
<div id="logo">
<!--my changes for two headers-->
<?php if ($this_is_home_page) {
echo zen_image($template->get_template_dir(MAIN_PAGE_HEADER_LOGO_IMAGE, DIR_WS_TEMPLATE, $current_page_base,'images'). '/' . MAIN_PAGE_HEADER_LOGO_IMAGE, HEADER_ALT_TEXT) . '';
}
else
{
echo zen_image($template->get_template_dir(HEADER_LOGO_IMAGE, DIR_WS_TEMPLATE, $current_page_base,'images'). '/' . HEADER_LOGO_IMAGE, HEADER_ALT_TEXT) . '';
}
?>
</div>