Results 1 to 6 of 6
  1. #1
    Join Date
    Feb 2008
    Posts
    53
    Plugin Contributions
    0

    Default Add Text to Top Navigation Bar

    I am using v1.5.1

    Years ago I had some text, not a link in the top navigation bar where the search box should have been. I added the text and it worked to my includes/template/custom/common/header.php

    The old code that worked is below
    <div id="navMainSearch"> My text here.</div> My text was aligned to the right.

    In 1.5.1 the code is different and my text won't display. The code in the new file is...

    <div id="navMainSearch"><?php require(DIR_WS_MODULES . 'sideboxes/search_header.php'); ?></div>

    I have tried inserting my text here <div id="navMainSearch">MY TEXT it didn't work.

    Then I tried it here 'sideboxes/search_header.php'); ?>MY TEXT</div> again it didn't work.

    Can anybody help me please?

    Thanks.

  2. #2
    Join Date
    Feb 2005
    Location
    Lansing, Michigan USA
    Posts
    20,024
    Plugin Contributions
    3

    Default Re: Add Text to Top Navigation Bar

    Your first attempt should have worked. Maybe with a link to the site ...

  3. #3
    Join Date
    Jul 2008
    Posts
    11
    Plugin Contributions
    0

    Default Re: Add Text to Top Navigation Bar

    Quote Originally Posted by stevesh View Post
    Your first attempt should have worked. Maybe with a link to the site ...
    Thanks Stevesh

    After you said the first attempt should have worked I tried it again. It now works. Last time I put a period at the end of the text and that is probably why the text didn't display.

    Now that my text is there, it's a bit high. I would like to center it virtically in the navigation bar. Any ideas?

    Thanks.

  4. #4
    Join Date
    Jul 2005
    Location
    Upstate NY
    Posts
    22,010
    Plugin Contributions
    25

    Default Re: Add Text to Top Navigation Bar

    Let us see it live and we can tell you exactly what styling to apply.

  5. #5
    Join Date
    Feb 2005
    Location
    Lansing, Michigan USA
    Posts
    20,024
    Plugin Contributions
    3

    Default Re: Add Text to Top Navigation Bar

    There are a couple ways to do that - this is the one I would use, adding to the stylesheet:

    #navMainSearch {margin: .7em .5em 0 0;}

  6. #6
    Join Date
    Feb 2008
    Posts
    53
    Plugin Contributions
    0

    Default Re: Add Text to Top Navigation Bar

    Quote Originally Posted by stevesh View Post
    There are a couple ways to do that - this is the one I would use, adding to the stylesheet:

    #navMainSearch {margin: .7em .5em 0 0;}
    Thank you so much Stevesh, it's perfect!

 

 

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. How to add MARQUEE text to the navigation bar?
    By Lobazniouk in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 18 May 2009, 02:52 PM
  3. How to add text link for search on top menu bar?
    By hara in forum Customization from the Admin
    Replies: 1
    Last Post: 3 Oct 2008, 01:28 PM
  4. Customize navigation bar on top and bar at footer
    By kippo in forum Templates, Stylesheets, Page Layout
    Replies: 5
    Last Post: 20 Sep 2006, 03:28 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