You're absolutely right - I missed a setting in my rush to glory ;)
Thanks
Printable View
You're absolutely right - I missed a setting in my rush to glory ;)
Thanks
Hi Anne
I was getting an error on my cart in the head section saying
I tracked the bug to the includes\templates\sheffield_blue\common\tpl_header.phpQuote:
count_contents();?> item(s) - format($_SESSION['cart']->show_total());?> |
Checkout
at line 95 it has the following
which uses short tags on the cart and currencies echo statements changing them to full tags like below fixes the issue for me.PHP Code:
<li><a href="<?php echo zen_href_link(FILENAME_SHOPPING_CART, '', 'NONSSL'); ?>"><img src="<?php echo $template->get_template_dir('',DIR_WS_TEMPLATE, $current_page_base,'images').'/'.HEADER_ICON_CART ?>" alt="cart icon" class="cart-icon" /><? echo $_SESSION['cart']->count_contents();?> item(s) - <? echo $currencies->format($_SESSION['cart']->show_total());?></a> | </li>
PHP Code:
<li><a href="<?php echo zen_href_link(FILENAME_SHOPPING_CART, '', 'NONSSL'); ?>"><img src="<?php echo $template->get_template_dir('',DIR_WS_TEMPLATE, $current_page_base,'images').'/'.HEADER_ICON_CART ?>" alt="cart icon" class="cart-icon" /><?php echo $_SESSION['cart']->count_contents();?> item(s) - <?php echo $currencies->format($_SESSION['cart']->show_total());?></a> | </li>
Hello again
if you go to
includes/languages/english/sheffield_blue/header.php
and set
to
The layout breaksCode:define('HEADER_SALES_TEXT', '');
The coding issue is here
includes\templates\sheffield_blue\common\tpl_header.php
The second </div> in that statement is the one that should close the taglineWrapper div, but if you have no tagline the ending </div> won't be actioned and your layout breaksPHP Code:
<div id="taglineWrapper">
<?php
if (HEADER_SALES_TEXT != '') {
?>
<div id="tagline"><?php echo HEADER_SALES_TEXT;?></div></div>
<?php
}
?>
so you need to change it to
But that still doesn't fix the layout issue because thisPHP Code:
<?php
if (HEADER_SALES_TEXT != '') {
?> <div id="taglineWrapper">
<div id="tagline"><?php echo HEADER_SALES_TEXT;?></div></div>
<?php
}
?>
The closing </div> for the logo div is within this statement scopePHP Code:
<!--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>'; ?>
<?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></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> <!-- This div here -->
<?php } // no HEADER_SALES_TEXT or SHOW_BANNERS_GROUP_SET2 ?>
<div id="header-right">
moving it out like below fixes the problem for mePHP Code:
<?php if (HEADER_SALES_TEXT != '' || (SHOW_BANNERS_GROUP_SET2 != '' && $banner = zen_banner_exists('dynamic', SHOW_BANNERS_GROUP_SET2))) { ?>
PHP Code:
<!--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>'; ?>
<?php if (HEADER_SALES_TEXT != '' || (SHOW_BANNERS_GROUP_SET2 != '' && $banner = zen_banner_exists('dynamic', SHOW_BANNERS_GROUP_SET2))) { ?>
<?php
if (HEADER_SALES_TEXT != '') {
?> <div id="taglineWrapper">
<div id="tagline"><?php echo HEADER_SALES_TEXT;?></div></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
}
}
?>
<?php } // no HEADER_SALES_TEXT or SHOW_BANNERS_GROUP_SET2 ?>
</div> <!-- Moves to here here -->
<div id="header-right">
<!--bof-navigation display-->
If you don't want to use the tagline, the best and simplest way is to just add a display:none; in the stylesheet to #tagline.
The template is coded to be used with all of the elements shown in the demo. If you look closely at the code you will see that all div's and /divs do match up. If you want to disable/turn off various elements in the template, the best way to do it is to use css. It prevents having to do a lot of re-coding.
Thanks,
Anne
hi everyone
how can i remove the social bar on this template
thanks
Hi Anne!
Using another of your wonderful templates!
Quick question:
In the Read-me for this template, regarding the Social Sidebar you state:
"In your favorite plain text editor open includes/templates/YOUR_TEMPLATE/css/stylesheet_social_header.css"
At the bottom of the file add display:none; to the class for each icon you don't want to display. So, for example if you don't want to display the facebook icon you would add:
Then you display the class as:Code:.facebook{display:none;}
I want to remove YouTube and the rest below that.Code:.facebook-sh
So I tried:
andCode:.youtube{display:none;}
and neither worked.Code:.youtube-sh{display:none;}
You refer above to the "stylesheet_social_header.css", but this template uses "stylesheet_social_sidebar.css"
So I assumes the "sh" was incorrectly referring to style header, so I replaced the "sh" with "ss" for social sidebar like this:
That didn't work either :(Code:.youtube-ss{display:none;}
Can you tell me the correct coding to use to remove unneeded social icons?
Thanks a million!
Kathleen