Results 1 to 2 of 2
  1. #1
    Join Date
    May 2010
    Location
    Virginia, USA
    Posts
    4
    Plugin Contributions
    0

    Default css horizonal navigational menu with sprites

    Hello,

    I've done a little more research. Since this post http://www.zen-cart.com/forum/showpo...postcount=3073 I do still have that question unanswered.

    I would like to know if I could use the CSS Horizontal Drop Down Menu addon is for v1.3.8 then change the colors for the menu to image sprites. Also move the whole menu to the top like it is currently on my cherry zen v1.39b.

    In the addon it states in the readme file:

    Add to the includes/templates/YOUR_TEMPLATE/common/tpl_header.php

    "add this to your header where you'd like the css menu to appear:

    HTML Code:

    HTML Code:
    <!--bof-drop down menu display-->
    <?php require($template->get_template_dir('tpl_drop_menu.php',DIR_WS_TEMPLATE, $current_page_base,'common'). '/tpl_drop_menu.php');?>
    <!--eof-drop down menu display-->
    <div class="clearBoth"></div>
    "

    I would like to do that BUT I don't know "what" I need to remove and exactly where to place this code so that it appears at the very top like my current navigational menu resides.

    The question from my previous post and this one I know are apples and oranges. I thank you for your time.

    JIM

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

    Default Re: css horizonal navigational menu with sprites

    Image sprites use the elements' backgrounds, so are handled in the stylesheet. Any elements that you can identify clearly enough in the stylesheet can use sprites.

    If you want the dropdown menu at the top of your header, add the code mentioned to /includes/templates/your_template/common/tpl_header.php, near the top of the file and right after the headerWrapper div opening.

 

 

Similar Threads

  1. CSS Sprites?
    By Ogran in forum Templates, Stylesheets, Page Layout
    Replies: 5
    Last Post: 27 Feb 2015, 01:40 AM
  2. CSS Sprites
    By smoke133 in forum Templates, Stylesheets, Page Layout
    Replies: 4
    Last Post: 3 Jul 2009, 11:42 PM
  3. DHTML Navigational Menu
    By jimmyjohn in forum Templates, Stylesheets, Page Layout
    Replies: 0
    Last Post: 12 Mar 2007, 08:38 PM
  4. Problems with CSS-menu
    By mcmatt in forum All Other Contributions/Addons
    Replies: 2
    Last Post: 17 Feb 2007, 05:54 PM

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