Thank you, misty. That should help; appreciate it. Another thing I realized, I will need to change the logo to a different .jpg for the home page as well as hide the "Home," "Login," and Search feature. How is this controlled?
Thank you, misty. That should help; appreciate it. Another thing I realized, I will need to change the logo to a different .jpg for the home page as well as hide the "Home," "Login," and Search feature. How is this controlled?
I figured how to hide the "Home," "Login," and Search field by puttingin index_home.css. Still don't know what to do with the logo/header image. I would like to replace it with a transparent gif so I could position it where I want and it would still be a link.Code:#navMainWrapper { display: none; }
Here is the link: http://vanessamooney.com/temp/. I was going to hide the logo by puttingin my index_home.css. What would be preferable is if I could instead use a transparent gif, make it the size of the "Vanessa Mooney Jewelry" logo (which is the background image applied to #wholeHeader in index_home.css) and position it over "Vanessa Mooney Jewelry."Code:#logoWrapperOuter { display: none; }
I can do the second and third step but making the logo image a different image for just the home page is what I don't know how to do.
There is a variant of the Smart Backgrounds code in the support thread (post 104) that is built to switch logos for specific pages. You would put it in /includes/templates/your_template/common/tpl_header.php.
If you only want the home page different, you could simplify that to:Save the homepage logo asPHP Code:<!--bof-branding display-->
<div id="logoWrapper">
<?php //Smart Backgrounds - for foreground logo - homepage only - 20081006
$smart_image = '';
//change filename to smartimg_ and pagename only if page image exists
$smart_image = (file_exists(DIR_WS_TEMPLATE_IMAGES . 'smartimg_' . $current_page_base . '.gif'))?'smartimg_' . $current_page_base . '.gif':HEADER_LOGO_IMAGE; //default/home page image will be as defined (HEADER_LOGO_IMAGE)
// /Smart Backgrounds?>
<div id="logo"><?php echo '<a href="' . HTTP_SERVER . DIR_WS_CATALOG . '">' . zen_image($template->get_template_dir($smart_image, DIR_WS_TEMPLATE, $current_page_base,'images'). '/' . $smart_image, HEADER_ALT_TEXT) . '</a>'; ?></div>
/includes/templates/your_template/images/smartimg_indexHome.gif.
Thanks, Glenn. I'll give it a go.
Okay, new questions, guys. I want to add a div layer with some image buttons at the top of my home page. Is there a way I can add this in the tpl_header.php but only for the home page or put it in the code just before the tpl_header.php is called (not sure which file this would be? Here is a screen shot of what I'm trying to accomplish: Screenshot
Those two buttons would definitely want to go in tpl_header.php, not before it.
Surround the div with a test:PHP Code:<?php if ($this_is_home_page) { >?
your HTML button code;
<?php } ?>
Glenn, thanks for the help.Only tweak was putting the "?" on the left of the ">" in the first line. So it was like:
PHP Code:<?php if ($this_is_home_page) { ?>
your HTML button code;
<?php } ?>
I added my code to define_main_page.php yet it does not show on the main page? any ideas?
Currently it starts with one of the categories yet even if i disable that, i just get a blank area.
Thanks
Erez
www.respectyourtaste.com