Zen Cart Logo
Forums / Templates, Stylesheets, Page Layout / How to add MARQUEE text to the navigation bar?

How to add MARQUEE text to the navigation bar?

Locked

Views: 7,441

Results 1 to 4 of 4
This thread is locked. New replies are disabled.
13 May 2009, 2:24 PM
#1
lobazniouk avatar

lobazniouk

New Zenner

Join Date:
Mar 2009
Location:
Somerset West, South Africa
Posts:
11
Plugin Contributions:
0

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

14 May 2009, 11:07 AM
#2
schoolboy avatar

schoolboy

Totally Zenned

Join Date:
Jun 2005
Location:
Cumbria, UK
Posts:
10,327
Plugin Contributions:
0

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 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:

<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)

// 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...*

18 May 2009, 11:57 AM
#3
lobazniouk avatar

lobazniouk

New Zenner

Join Date:
Mar 2009
Location:
Somerset West, South Africa
Posts:
11
Plugin Contributions:
0

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

18 May 2009, 1:52 PM
#4
schoolboy avatar

schoolboy

Totally Zenned

Join Date:
Jun 2005
Location:
Cumbria, UK
Posts:
10,327
Plugin Contributions:
0

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 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").