Results 1 to 8 of 8
  1. #1
    Join Date
    Apr 2010
    Posts
    263
    Plugin Contributions
    0

    Default Custom header issues

    Hi,

    I hope someone can help me. I have created a bit of a bespoke header, please see www.dragons.digi-blue.co.uk, using version 1.3.9 h.

    I have added this code in one of the divs:

    <li><img src="includes/templates/custom/images/headercart.png" class="cart-image" alt="the shopping cart" /><a href="<?php echo zen_href_link(FILENAME_SHOPPING_CART, '', 'NONSSL'); ?>"><?php echo HEADER_TITLE_CART_CONTENTS; ?><? echo $_SESSION['cart']->count_contents();?> ITEM(S)</a></li>
    <li><a href="<?php echo zen_href_link(FILENAME_CHECKOUT_SHIPPING, '', 'SSL'); ?>"><?php echo HEADER_TITLE_CHECKOUT; ?></a></li>

    I have removed the bit of code that shows the price in the relevant currency. However it seems I have a dot at the front and a dot at the back, and am not sure how I can remove these? Can someone please help?

  2. #2
    Join Date
    Nov 2006
    Location
    Dartmouth, NS Canada
    Posts
    2,378
    Plugin Contributions
    0

    Default Re: Custom header issues

    Are you sure that dot isn't an image? I can't find it in the page code as rendered.

    Rob

  3. #3
    Join Date
    Apr 2010
    Posts
    263
    Plugin Contributions
    0

    Default Re: Custom header issues

    Hi Rob,

    Thanks for the reply. I have checked includes/languages/english/custom/header.php, I have referenced pictures for the top menu and checkout, but there does not seem to be any references to any other pictures. Could this be in a different file?

  4. #4
    Join Date
    Apr 2010
    Posts
    263
    Plugin Contributions
    0

    Default Re: Custom header issues

    This si the original code I took from another template and stripped out what I didn't want:

    <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 } } ?>


    <li><img src="includes/templates/all_business/images/cart.jpg" class="cart-image" alt="the shopping cart" /><a href="<?php echo zen_href_link(FILENAME_SHOPPING_CART, '', 'NONSSL'); ?>"><?php echo HEADER_TITLE_CART_CONTENTS; ?> - <? echo $_SESSION['cart']->count_contents();?> item(s) - <? echo $currencies->format($_SESSION['cart']->show_total());?></a> | </li>
    <li><a href="<?php echo zen_href_link(FILENAME_CHECKOUT_SHIPPING, '', 'SSL'); ?>"><?php echo HEADER_TITLE_CHECKOUT; ?></a></li>
    <?php if ($_SESSION['cart']->count_contents() != 0) { ?>
    <?php }?>
    </ul>
    </div>

  5. #5
    Join Date
    May 2009
    Posts
    1,219
    Plugin Contributions
    2

    Default Re: Custom header issues

    They are the list dots

    Line 1484 of stylesheet.css
    add list-style: none;

    .back {
    float: left;
    list-style: none;
    }

  6. #6
    Join Date
    Apr 2010
    Posts
    263
    Plugin Contributions
    0

    Default Re: Custom header issues

    Thanks keneso! This is my first attempt to really customise Zen Cart, I still do fall but now I know for future! This resolved the issue.

  7. #7
    Join Date
    May 2009
    Posts
    1,219
    Plugin Contributions
    2

    Default Re: Custom header issues

    You're welcome

    I still do fall but now I know for future!
    Join the club

  8. #8
    Join Date
    Nov 2006
    Location
    Dartmouth, NS Canada
    Posts
    2,378
    Plugin Contributions
    0

    Default Re: Custom header issues

    Quote Originally Posted by keneso View Post
    They are the list dots
    I knew that (somewhere in the back of my mind.)

    Rob

 

 

Similar Threads

  1. I can't find the CUSTOM folder -- includes/languages/english/custom/header.php
    By Yammits in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 11 Jul 2010, 10:26 PM
  2. Issues with creating custom template
    By ccices in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 16 Nov 2009, 04:46 AM
  3. Custom Buttons Issues
    By TrendyCamera in forum Templates, Stylesheets, Page Layout
    Replies: 7
    Last Post: 8 Oct 2008, 08:18 PM
  4. Custom Header and Css alignment issues
    By Angel Devoid in forum Basic Configuration
    Replies: 2
    Last Post: 22 May 2006, 11:46 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR