Zen Follower
- Join Date:
- Sep 2008
- Posts:
- 429
- Plugin Contributions:
- 0
Page layout question
Ian
http://mowerpartsupply.com/catalog/
Zen Follower
Totally Zenned
Zen Follower
Zen Follower
Zen Follower
I might even like to put those links in the solid portion of the grass but darned if I know how....
Zen Follower
saitomedia:
Do you mean having your products categories accessible from the header?
If so, I think there are some good mods you can install such as
http://www.zen-cart.com/index.php?main_page=product_contrib_info&cPath=40_62&products_id=476
It's worth a try. Remember to backup before adding any mods.
If you want menu integrated into your header graphics, then you'll definitely need to slice your graphics up with photoshop once you added the menu items in the graphics. Make those slices into a link afterwords.
I hard coded my menu with simple javascript rollover. You can find the link in my sig, hopefully, this is what you're looking for.
Black Belt
#navEZPagesTop {
width: 432px;/*adjust to taste*/
float: right;
}Zen Follower
gjh42:
There's nothing that says your ez-pages header bar needs to remain a full width block sitting below the header image.
Add to your stylesheet#navEZPagesTop { width: 432px;/*adjust to taste*/ float: right; }
To get it into the header image, you may need to alter the setup so that the image is the #headerWrapper background, and the #logo div is a smaller transparent block located above the "grass" area. This can be fine-tuned in the stylesheet.
Black Belt
Black Belt
Black Belt
#headerWrapper {
background-image:url(../images/head_bg_2.gif);
background-repeat: no-repeat;
background-position: 30px center;/*adjust as required*/
}
#logoWrapper {
width:200px;
height:150px;
/*background-image:url(../images/head_bg_2.gif);
background-repeat: no-repeat;
you will probably need to move these
into a #headerWrapper rule as shown above*/
float: left;
}
#logoWrapper+.clearBoth {display: none;}
/* this won't work in IE6. in other browsers, it gives a taste of what will
happen when you delete the <br class="clearBoth" /> in tpl_header.php */
...
#navBreadCrumb {
padding: 0.5em 0.5em;
background-color: #ffffff;
font-size: 0.95em;
font-weight: bold;
margin: 0em;
}
#navEZPagesTop {
width: 512px;/*adjust to taste*/
float: right;
background: none;
font-size: 0.95em;
font-weight: bold;
margin: 113px 0 00em;
padding: 0.5em;
}Zen Follower
<!--bof-branding display-->
<!--
<div id="logoWrapper">
<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>
<?php if (HEADER_SALES_TEXT != '' || (SHOW_BANNERS_GROUP_SET2 != '' && $banner = zen_banner_exists('dynamic', SHOW_BANNERS_GROUP_SET2))) { ?>
<div id="taglineWrapper">
<?php
if (HEADER_SALES_TEXT != '') {
?>
<div id="tagline"><?php echo HEADER_SALES_TEXT;?></div>
<?php
}
?>
<?php
if (SHOW_BANNERS_GROUP_SET2 != '' && $banner = zen_banner_exists('dynamic', SHOW_BANNERS_GROUP_SET2)) {
if ($banner->RecordCount() > 0) {
?>
<div id="bannerTwo" class="banners"><?php echo zen_display_banner('static', $banner);?></div>
<?php
}
}
?>
</div>
<?php } // no HEADER_SALES_TEXT or SHOW_BANNERS_GROUP_SET2 ?>
</div>
<br class="clearBoth" />
-->
<!--eof-branding display-->3. Add your header HTML section (which I took from http://mowerpartsupply.com/test6.html, and added <table> and </table> tag) after the <!-eof-branding display--><!-- bof Mower Part Supply header -->
<table cellspacing=0 cellpadding=0>
<tr>
<td width="250" height="114"><div align="left"><img src="test6_files/top-mower-logo.gif" alt="animated lawn mower" width="250" border="0" height="128"></div></td>
<td colspan="2" valign="top" width="576" bgcolor="#cfe5fa" height="114"><img src="test6_files/equipment-supply.jpg" alt="662-895-3442" width="440" height="125"><a href="https://www.cartmanager.net/cgi-bin/cart.cgi?ViewCart=igilmore" target="_blank"><img src="test6_files/view_cart1.jpg" alt="View Cart" width="100" border="0" height="125"></a></td>
<td width="6" bgcolor="#cfe5fa" height="114"> </td>
</tr>
<tr>
<td valign="top" width="250" height="1"><img src="test6_files/mower_part_supply.gif" alt="landscaper supply" width="250" border="0" height="60"></td>
<td colspan="2" width="560" background="test6_files/recurring_grass.jpg" height="1"><a href="http://mowerpartsupply.com/warranty.php"><img src="test6_files/warranty_button.gif" alt="warranty" width="80" border="0" height="60"></a><a href="http://mowerpartsupply.com/location.php"><img src="test6_files/location_button.gif" alt="location" width="80" border="0" height="60"></a><a href="http://mowerpartsupply.com/about-us.php"><img src="test6_files/about_button.gif" alt="about us" width="80" border="0" height="60"></a><a href="http://mowerpartsupply.com/privacy.php"><img src="test6_files/privacy_button.gif" alt="privacy" width="80" border="0" height="60"></a><a href="http://mowerpartsupply.com/order-info.php"><img src="test6_files/order_button.gif" alt="order info" width="80" border="0" height="60"></a><a href="http://mowerpartsupply.com/hours.php"><img src="test6_files/hours_button.gif" alt="hours" width="80" border="0" height="60"></a><a href="http://mowerpartsupply.com/returns.php"><img src="test6_files/returns_button.gif" alt="returns" width="80" border="0" height="60"></a></td>
<td width="6" bgcolor="#046b34" height="1">
<img src="test6_files/last-grass.gif" width="6" border="0" height="60"></td>
</tr>
</table>
<!-- eof Mower Part Supply header --> This will replace the entire zen cart header with yours. You are 1/2 way into this already, but you just need to continue to tweak your tpl_header.php file so it contains your links in the graphics.Zen Follower
saitomedia:
Glenn is right. You need to continue to modify the header file.
Here's my take.
1. Backup your top_header.php file and put it aside. You can revert the changes if things don't work after following the below info.
2. Look into tpl_header.php in your current template, and comment out the entire branding section with the red indicated code. This will eliminate zen cart default header all together.
3. Add your header HTML section (which I took from http://mowerpartsupply.com/test6.html, and added <table> and </table> tag) after the <!-eof-branding display--><!--bof-branding display--> <!-- <div id="logoWrapper"> <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> <?php if (HEADER_SALES_TEXT != '' || (SHOW_BANNERS_GROUP_SET2 != '' && $banner = zen_banner_exists('dynamic', SHOW_BANNERS_GROUP_SET2))) { ?> <div id="taglineWrapper"> <?php if (HEADER_SALES_TEXT != '') { ?> <div id="tagline"><?php echo HEADER_SALES_TEXT;?></div> <?php } ?> <?php if (SHOW_BANNERS_GROUP_SET2 != '' && $banner = zen_banner_exists('dynamic', SHOW_BANNERS_GROUP_SET2)) { if ($banner->RecordCount() > 0) { ?> <div id="bannerTwo" class="banners"><?php echo zen_display_banner('static', $banner);?></div> <?php } } ?> </div> <?php } // no HEADER_SALES_TEXT or SHOW_BANNERS_GROUP_SET2 ?> </div> <br class="clearBoth" /> --> <!--eof-branding display-->
This will replace the entire zen cart header with yours. You are 1/2 way into this already, but you just need to continue to tweak your tpl_header.php file so it contains your links in the graphics.<!-- bof Mower Part Supply header --> <table cellspacing=0 cellpadding=0> <tr> <td width="250" height="114"><div align="left"><img src="test6_files/top-mower-logo.gif" alt="animated lawn mower" width="250" border="0" height="128"></div></td> <td colspan="2" valign="top" width="576" bgcolor="#cfe5fa" height="114"><img src="test6_files/equipment-supply.jpg" alt="662-895-3442" width="440" height="125"><a href="https://www.cartmanager.net/cgi-bin/cart.cgi?ViewCart=igilmore" target="_blank"><img src="test6_files/view_cart1.jpg" alt="View Cart" width="100" border="0" height="125"></a></td> <td width="6" bgcolor="#cfe5fa" height="114"> </td> </tr> <tr> <td valign="top" width="250" height="1"><img src="test6_files/mower_part_supply.gif" alt="landscaper supply" width="250" border="0" height="60"></td> <td colspan="2" width="560" background="test6_files/recurring_grass.jpg" height="1"><a href="http://mowerpartsupply.com/warranty.php"><img src="test6_files/warranty_button.gif" alt="warranty" width="80" border="0" height="60"></a><a href="http://mowerpartsupply.com/location.php"><img src="test6_files/location_button.gif" alt="location" width="80" border="0" height="60"></a><a href="http://mowerpartsupply.com/about-us.php"><img src="test6_files/about_button.gif" alt="about us" width="80" border="0" height="60"></a><a href="http://mowerpartsupply.com/privacy.php"><img src="test6_files/privacy_button.gif" alt="privacy" width="80" border="0" height="60"></a><a href="http://mowerpartsupply.com/order-info.php"><img src="test6_files/order_button.gif" alt="order info" width="80" border="0" height="60"></a><a href="http://mowerpartsupply.com/hours.php"><img src="test6_files/hours_button.gif" alt="hours" width="80" border="0" height="60"></a><a href="http://mowerpartsupply.com/returns.php"><img src="test6_files/returns_button.gif" alt="returns" width="80" border="0" height="60"></a></td> <td width="6" bgcolor="#046b34" height="1"> <img src="test6_files/last-grass.gif" width="6" border="0" height="60"></td> </tr> </table> <!-- eof Mower Part Supply header -->
Don't forget to change those links in the above code to relative links. You don't want any URL in any of your links in zen cart, otherwise, using the same code in the SSL section will render "This page contains secure unsecure contents".
Black Belt
Zen Follower
gjh42:
These are two completely different approaches to the problem. You can do one or the other; either can work, though you have the first one half done already (7/8 done if you apply the stylesheet changes in my last post).
Be aware that using static links like the ones in your original HTML would cause SSL problems down the road as saitomedia says, and you would have to convert those to relative/dynamic links.
The links will be built automatically if you continue to use the ez-pages navbar to display them.
Black Belt
Zen Follower
Black Belt
#headerWrapper {
background-image:url(../images/head_bg_2.gif);
background-repeat: no-repeat;
background-position: 41px center;/*adjust as required*/
}
#logoWrapper {
width:200px;
height:150px;
float: left;
}
#logoWrapper+.clearBoth {display: none;}
/*this is temporary and lets the ez-pages bar sit next to the logo -
you need to delete the <br class="clearBoth" /> in tpl_header.php as advised above.*/and lower#navEZPagesTop {
width: 512px;
float: right;
background: none;
font-size: 0.95em;
font-weight: bold;
margin: 113px 0 0 0em;
padding: 0.5em;
}margin: 113px 0 00em; might be a problem - should be margin: 113px 0 0 0em; note space between zeros.Zen Follower
gjh42:
You want this in your stylesheet:and lower#headerWrapper { background-image:url(../images/head_bg_2.gif); background-repeat: no-repeat; background-position: 41px center;/*adjust as required*/ } #logoWrapper { width:200px; height:150px; float: left; } #logoWrapper+.clearBoth {display: none;} /*this is temporary and lets the ez-pages bar sit next to the logo - you need to delete the <br class="clearBoth" /> in tpl_header.php as advised above.*/margin: 113px 0 00em; might be a problem - should be margin: 113px 0 0 0em; note space between zeros.#navEZPagesTop { width: 512px; float: right; background: none; font-size: 0.95em; font-weight: bold; margin: 113px 0 0 0em; padding: 0.5em; }
What browser are you using? IE6 doesn't know how to interpret #logoWrapper+.clearBoth
Black Belt
#headerWrapper {
background-image:url(../images/head_bg_2.gif);
background-repeat: no-repeat;
background-position: 41px center;/*adjust as required*/
height: 191px;
}Destination thread ID and reason are required when shown.
Tell staff why this post should be reviewed.
Required for login, security, and core site functionality.
Help us understand how the site is used so we can improve it.
Used for promotion and personalized campaign measurement.