Zen Cart Logo
Forums / Basic Configuration / Make buttons appear in header

Make buttons appear in header

Locked

Views: 2,204

Results 1 to 6 of 6
This thread is locked. New replies are disabled.
29 Jan 2008, 11:54 AM
#1
jas99villa avatar

jas99villa

New Zenner

Join Date:
May 2006
Posts:
76
Plugin Contributions:
0

Make buttons appear in header

On https://www.chinesebikesdirect.co.uk I am trying so hard (and failing) to get the info buttons to appear at the very top with the home button.

Does anyone have an easy solution to this?

Thanks in advance,

Jason.

29 Jan 2008, 12:21 PM
#2
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: Make buttons appear in header

looked at your site and did not view any "info" buttons that need re-location??

Zen-Venom Get Bitten

29 Jan 2008, 12:28 PM
#3
jas99villa avatar

jas99villa

New Zenner

Join Date:
May 2006
Posts:
76
Plugin Contributions:
0

Re: Make buttons appear in header

Sorry, I didn't make it very clear! Some of them were in the info box but ive made them from ez pages and selected to put them in header but they go below the banner

Home :: About Us :: Terms :: Site Map :: Privacy Notice :: Contact Us

29 Jan 2008, 12:35 PM
#4
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: Make buttons appear in header

You will have to add as li entries the ones you want and then turn off the header display in ezpages. In your includes/templates/simple_zen/common/ dir see if there is a tpl_header.php file and if not place a copy there and edit this copy and insert your additional links in the order you want them in this section:

<div id="headerWrapper">
<!--bof-navigation display-->
<div id="navMainWrapper">
<div id="navMain">
    <ul class="back">
    <li><?php echo '<a href="' . HTTP_SERVER . DIR_WS_CATALOG . '">'; ?><?php echo HEADER_TITLE_CATALOG; ?></a></li>
<?php if ($_SESSION['customer_id']) { ?>
    <li><a href="<?php echo zen_href_link(FILENAME_LOGOFF, '', 'SSL'); ?>"><?php echo HEADER_TITLE_LOGOFF; ?></a></li>
    <li><a href="<?php echo zen_href_link(FILENAME_ACCOUNT, '', 'SSL'); ?>"><?php echo HEADER_TITLE_MY_ACCOUNT; ?></a></li>
<?php
      } else {
        if (STORE_STATUS == '0') {
?>
    <li><a href="<?php echo zen_href_link(FILENAME_LOGIN, '', 'SSL'); ?>"><?php echo HEADER_TITLE_LOGIN; ?></a></li>
<?php } } ?>

<?php if ($_SESSION['cart']->count_contents() != 0) { ?>
    <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>
<?php }?>
</ul>
</div>
<div id="navMainSearch"><?php require(DIR_WS_MODULES . 'sideboxes/search_header.php'); ?></div>
<br class="clearBoth" />
</div>

Zen-Venom Get Bitten

30 Jan 2008, 10:33 AM
#5
jas99villa avatar

jas99villa

New Zenner

Join Date:
May 2006
Posts:
76
Plugin Contributions:
0

Re: Make buttons appear in header

Thanks for the reply. Is there an easier way to discribe that? Sorry, when it comes to the code stuff... :cry:

30 Jan 2008, 10:39 AM
#6
kuroi avatar

kuroi

Totally Zenned

Join Date:
Apr 2006
Location:
London, UK
Posts:
10,475
Plugin Contributions:
11

Re: Make buttons appear in header

Yes, there is an easier way. In your template's common/tpl_header.php file, take the block of code that starts <!--bof-header ezpage links--> and ends <!--eof-header ezpage links--> and move it the be just before <!--bof-branding display-->

This takes the EZ-Page links that you have created and relocates them before the branding section which includes what I suepct you mean by your banner.

Kuroi Web Design and Development | Twitter

(Questions answered in the forum only - so that any forum member can benefit - not by personal message)