Results 1 to 4 of 4
  1. #1
    Join Date
    Mar 2009
    Location
    Somerset West, South Africa
    Posts
    11
    Plugin Contributions
    0

    Default How to add MARQUEE text to the navigation bar?

    Hi Zenners:

    Hope any of you could help me, im stuck with this and cannot get it right, im trying to add MARQUEE text in the navigation bar, exactly in between the log in and the currency menu (click the link to see what i mean)

    http://wallandmural-stencils.com/Marquee.jpg

    and this is my website:

    http://wallandmural-stencils.com/shop

    Ive been trying to add the text in tpl_header, but wherever i put the text it doesnt work properly.

    Please give me a hand guys

    I will greatly apreciate it

    Cheers

    Diego

  2. #2
    Join Date
    Jun 2005
    Location
    Cumbria, UK
    Posts
    10,263
    Plugin Contributions
    3

    Default Re: How to add MARQUEE text to the navigation bar?

    After a customer has logged in, does this menu bar then show additional links like: logout, checkout, shopping basket ...?

    (Check tpl_header.php to see what is set for these...)

    If these functions (displaying the additional links) are ACTIVE, then your marquee will "contract" and "expand"... possibly making it look very silly.

    The best way to do this is to:

    1. Set up a <div> just after the following (if you have it) in tpl_header.php :

    PHP Code:
    <?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 }?>
    The <div> you add could look like:

    PHP Code:
    <div id="marquee"><?php echo HEADER_MARQUEE;?></div>
    Then you will need to create a DEFINE for HEADER_MARQUEE and put it somewhere in your english.php file (the main language file)

    PHP Code:
    // marquee text on main page
      
    define('HEADER_MARQUEE''<marquee>YOUR MARQUEE DATA HERE</marquee>'); 

    PS: I hate "marquees"... they are distracting and visually very irritating - but that's just my opinion...
    20 years a Zencart User

  3. #3
    Join Date
    Mar 2009
    Location
    Somerset West, South Africa
    Posts
    11
    Plugin Contributions
    0

    Default Re: How to add MARQUEE text to the navigation bar?

    Hi Schoolboy:

    I tried what you said, but it still doesnt work, it shows the marquee beneath the home/login navigation bar, but not in it, i dont know what i am doing wrong, maybe it cant be done.

    Thanks anyway

    Diego

  4. #4
    Join Date
    Jun 2005
    Location
    Cumbria, UK
    Posts
    10,263
    Plugin Contributions
    3

    Default Re: How to add MARQUEE text to the navigation bar?

    You could try making it part of the ordered list, but then you'll probably have a challenge applying a style.

    PHP Code:
    <?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>
       <li><?php echo HEADER_MARQUEE?></li>
    <?php }?>
    (Perhaps you could embed a desired style in the DEFINE for "HEADER_MARQUEE").
    20 years a Zencart User

 

 

Similar Threads

  1. v151 How do I add navigation bar on the most top of my page?
    By dijah in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 14 Apr 2014, 03:32 PM
  2. v151 Add Text to Top Navigation Bar
    By blue-grape in forum Upgrading to 1.5.x
    Replies: 5
    Last Post: 5 Jul 2013, 11:41 AM
  3. Replies: 7
    Last Post: 16 Mar 2011, 08:39 PM
  4. how to add a sign up link at the navigation bar
    By turbochan in forum Basic Configuration
    Replies: 1
    Last Post: 26 Feb 2010, 04:56 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