Re: Cherry Zen Template Support Thread
Quote:
Originally Posted by
samfred
I am building a zencart and have installed a new template.The problem is that When you first enter the site the template is all messed up but if you add the store extension or hit any other page the template becomes normal. Do you know how I can make the home page apear normal or alternatively point it to /store?
A link would be extremely helpful.
If something is wrong on only the HOME page, then you should look to what is different on the home page.
Check your home page text to make sure all the </div>'s are closed properly. Troubleshooting logic will tell you that if all other pages are fine, then find the differences.
Re: Cherry Zen Template Support Thread
Hi Jade,
Can you tell from the code why the footer does not match the header??? *The links in the footer are centered and home is above the green bar...
Header:
Code:
* require code to show EZ-Pages list
*/
include(DIR_WS_MODULES . zen_get_module_directory('ezpages_bar_header.php'));
?>
<?php if (sizeof($var_linksList) >= 1) { ?>
<div id="navEZPagesTop">
<div class="clearBoth"></div>
<!--bof-view cart and checkout now links-->
<?php if ($_SESSION['cart']->count_contents() != 0) { ?>
<div id="ezLinks">
<ul class="forward">
<li><a href="<?php echo zen_href_link(FILENAME_SHOPPING_CART, '', 'NONSSL'); ?>"><?php echo HEADER_TITLE_CART_CONTENTS; ?></a></li>|
<li><a href="<?php echo zen_href_link(FILENAME_CHECKOUT_SHIPPING, '', 'SSL'); ?>"><?php echo HEADER_TITLE_CHECKOUT; ?></a></li>
</ul>
</div>
<?php }?>
<!--eof-view cart and checkout now links-->
<?php for ($i=1, $n=sizeof($var_linksList); $i<=$n; $i++) {
if ($_SESSION['customer_id'] or ($var_linksList[$i]['name'] != 'Logoff')) { //show Logoff only if logged in ?>
<a href="<?php echo $var_linksList[$i]['link']; ?>"><?php echo $var_linksList[$i]['name']; ?></a><?php echo ($i < $n ? EZPAGES_SEPARATOR_HEADER : '') . "\n"; ?>
<?php } // /if
} // end FOR loop ?>
</div>
<?php } ?>
Footer:
Code:
* require code to show EZ-Pages list
*/
include(DIR_WS_MODULES . zen_get_module_directory('ezpages_bar_footer.php'));
?>
<?php if (sizeof($var_linksList) >= 1) { ?>
<div id="navEZPagesBot">
<div class="clearBoth"></div>
<!--bof-view cart and checkout now links-->
<?php if ($_SESSION['cart']->count_contents() != 0) { ?>
<div id="ezLinks">
<ul class="forward">
<li><a href="<?php echo zen_href_link(FILENAME_SHOPPING_CART, '', 'NONSSL'); ?>"><?php echo HEADER_TITLE_CART_CONTENTS; ?></a></li>|
<li><a href="<?php echo zen_href_link(FILENAME_CHECKOUT_SHIPPING, '', 'SSL'); ?>"><?php echo HEADER_TITLE_CHECKOUT; ?></a></li>
</ul>
</div>
<?php }?>
<!--eof-view cart and checkout now links-->
<?php for ($i=1, $n=sizeof($var_linksList); $i<=$n; $i++) {
if ($_SESSION['customer_id'] or ($var_linksList[$i]['name'] != 'Logoff')) { //show Logoff only if logged in ?>
<a href="<?php echo $var_linksList[$i]['link']; ?>"><?php echo $var_linksList[$i]['name']; ?></a><?php echo ($i <= $n ? EZPAGES_SEPARATOR_FOOTER : '') . "\n"; ?>
<?php } // /if
} // end FOR loop ?>
</div>
<?php } ?>
Re: Cherry Zen Template Support Thread
Quote:
Quote:
Originally Posted by sleepless
Thanks...I would really appreciate it. Thanks for the link too.
Here's a couple... is this the text that you needed?
Yes. Thank you so much!!
Kelly
Re: Cherry Zen Template Support Thread
Quote:
Originally Posted by
gsdcypher
Hi Jade,
Can you tell from the code why the footer does not match the header??? *The links in the footer are centered and home is above the green bar...
I need to see it in action, please post a link. All that code doesn't help me. :smile:
Re: Cherry Zen Template Support Thread
Hi Jade,
www.allk-9.com
Thanks! :smile:
Re: Cherry Zen Template Support Thread
Quote:
Originally Posted by
gsdcypher
Ok, the home link in the footer area is not part of ezpages, while the home link in the header area seems to be part of ezpages. So create a home link in ezpages for the footer. Then you'll need to remove the home link in includes/templates/YOUR_TEMPLATE/common/tpl_footer.php.
You can change this:
Code:
<!--bof-navigation display -->
<div id="navSuppWrapper">
<div id="navSupp">
<ul>
<li><?php echo '<a href="' . HTTP_SERVER . DIR_WS_CATALOG . '">'; ?><?php echo HEADER_TITLE_CATALOG; ?></a></li>
<?php if (EZPAGES_STATUS_FOOTER == '1' or (EZPAGES_STATUS_FOOTER == '2' and (strstr(EXCLUDE_ADMIN_IP_FOR_MAINTENANCE, $_SERVER['REMOTE_ADDR'])))) { ?>
<li><?php require($template->get_template_dir('tpl_ezpages_bar_footer.php',DIR_WS_TEMPLATE, $current_page_base,'templates'). '/tpl_ezpages_bar_footer.php'); ?></li>
<?php } ?>
</ul>
</div>
</div>
<!--eof-navigation display -->
to this:
Code:
<!--bof-navigation display -->
<div id="navSuppWrapper">
<div id="navSupp">
<?php if (EZPAGES_STATUS_FOOTER == '1' or (EZPAGES_STATUS_FOOTER == '2' and (strstr(EXCLUDE_ADMIN_IP_FOR_MAINTENANCE, $_SERVER['REMOTE_ADDR'])))) { ?>
<?php require($template->get_template_dir('tpl_ezpages_bar_footer.php',DIR_WS_TEMPLATE, $current_page_base,'templates'). '/tpl_ezpages_bar_footer.php'); ?>
<?php } ?>
</div>
</div>
<!--eof-navigation display -->
Then you'll need to make changes in the css to make the footer match the header.
Re: Cherry Zen Template Support Thread
ahhhh... ok thanks. that is much closer.
still the footer links are centered and the header links are on the left.
and when you add an item to the cart, the view cart | checkout now lines up correct in the header and is slightly below in the footer....
any tweaks for that???
Re: Cherry Zen Template Support Thread
Quote:
Originally Posted by
gsdcypher
ahhhh... ok thanks. that is much closer.
still the footer links are centered and the header links are on the left.
and when you add an item to the cart, the view cart | checkout now lines up correct in the header and is slightly below in the footer....
any tweaks for that???
Have you tried adjusting any of the stylesheet.css file for those sections? You can look at the source of the page to see what sections are involved.
Re: Cherry Zen Template Support Thread
well i tried to... i copied the #navEZPagesTop and made the #navEZPagesBot so they would look the same...
Code:
#navEZPagesTop {
/*background-color:#9EAD48 /* background color behind ezpages section */
background:url("../images/ezbg.gif") repeat-x; grey background image behind ezpages section */
}
#navEZPagesBot {
/*background-color:#9EAD48 /* background color behind ezpages section */
background:url("../images/ezbg.gif") repeat-x; grey background image behind ezpages section */
}
and
Code:
#navEZPagesTop {
font-weight:bold;
width:100%;
padding:7px 0;
}
#navEZPagesTop a {
padding:0 8px;
}
#navEZPagesBot {
font-weight:bold;
width:100%;
padding:7px 0;
}
#navEZPagesBot a {
padding:0 8px;
}
1 Attachment(s)
Re: Cherry Zen Template Support Thread
Hey,
I'm having problems viewing my webpage in IE7. The right sideboxes goes off the original body. This only happens in some Screen Size and also , when you "restore down the screen" . The site is getxboxcodes.com.
Thank you.
Alwin