Results 1 to 5 of 5
  1. #1
    Join Date
    Jan 2012
    Location
    South West UK
    Posts
    17
    Plugin Contributions
    0

    Default Creating a multi-coloured menu?

    Hi I'm about to start a site for a prinnting company and would like to use Zen Cart 1.3.x for maximum addon compatibility.

    My question is, can the menu system be coloured INDEPENDENTLY for each menu item? I need a vertical rainbow menu.

    I've done this in Joomla before using the article IDs as a class, but wondered if such functionality is built into Zen Cart.

    Obviously the easy way is one background image - I'm after something a bit more intelligent.

    I await your answers with baited breath!

    Cheers.

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

    Default Re: Creating a multi-coloured menu?

    Quote Originally Posted by johnlewisdesign View Post
    Hi I'm about to start a site for a prinnting company and would like to use Zen Cart 1.3.x for maximum addon compatibility.
    As long as x=9h, that's OK, though I would still use 1.5.0 and forgo any mods which don't work (yet).

    Exactly what 'menu items' are you referring to ?

  3. #3
    Join Date
    Jan 2012
    Location
    South West UK
    Posts
    17
    Plugin Contributions
    0

    Default Re: Creating a multi-coloured menu?

    Indeed it is 9h.

    What I refer to is a dropdown menu (I'm using DropMenu) where each parent is a different colour.

    For instance

    Home About Shipping Contact Help

    But the background colours are to be targeted not the text.

    In Joomla using Superfish Menu module I can simply make

    Code:
    .SFMenu ul { }
    into
    Code:
    .SFMenu ul#item14 {background-color: #fc0;}
    to target the menu item with id 14.

    (not the exact CSS, but kinda how it works).

    I just want to know if this item-specific targeting for css is possible in Zen Cart.

    Re: version - unfortunately I cannot go to 1.5.0 yet but plan on doing so when the mods catch up

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

    Default Re: Creating a multi-coloured menu?

    Ask in the support threads for the CSS dropdown menu mods from Free Addons. I don't know if any of them have ids built in, but that feature could be added fairly easily if not.
    For the sidebox menu, Categories Dressing does give an id to any category group or ul, or individual category you set to have one.

  5. #5
    Join Date
    Jun 2005
    Location
    Cumbria, UK
    Posts
    10,267
    Plugin Contributions
    3

    Default Re: Creating a multi-coloured menu?

    We use the dropdown menu you are referring to (I think) and we have managed to get it to render different background colours on the initial hovers.

    As Glenn says, it requires adding some style ID's to the menu's code file (tpl_drop_menu.php) and a couple of new declarations in the associated stylesheet.

    THE ORIGINAL PHP
    HTML Code:
    <div id="dropMenuWrapper">
      <div id="dropMenuWrapperb">
        <div id="dropMenuWrapperc">
          <div id="dropMenuWrapperd">
            <div id="dropMenu">
              <ul class="level1">
                <li class="submenu"><a href="<?php echo zen_href_link(FILENAME_DEFAULT); ?>"><?php echo HEADER_TITLE_CATALOG; ?></a>
    OUR EDIT
    HTML Code:
    <div id="dropMenuWrapper">
      <div id="dropMenuWrapperb">
        <div id="dropMenuWrapperc">
          <div id="dropMenuWrapperd">
            <div id="dropMenu">
              <ul class="level1">
                <li class="submenu" id="first"><a href="<?php echo zen_href_link(FILENAME_DEFAULT); ?>"><?php echo HEADER_TITLE_CATALOG; ?></a>
    (See the addition of id="first" in that specific submenu <li>)?

    ORIGINAL CSS
    HTML Code:
    body {  
    	behavior: url(includes/csshover.htc);
    	}
    	
    /*ash*/
    div#dropMenu li a:hover, div#dropMenu li.submenu li.submenu:hover {color: #ffffff!important;background:#DC0019;}

    OUR EDIT
    HTML Code:
    body {  
    	behavior: url(includes/csshover.htc);
    	}
    	
    /*ash*/
    div#dropMenu li a:hover, div#dropMenu li.submenu li.submenu:hover {color: #ffffff!important;background:#DC0019;}
    div#dropMenu li#first a:hover, div#dropMenu li.submenu li#first.submenu:hover {color: #ffffff!important;background:#000;}


    SEE THE RESULT


    on demanincor - uk website. Hover over header menu items. HOME item has black background, others have red.

    You can apply this principle to all the menu items.
    20 years a Zencart User

 

 

Similar Threads

  1. v150 Creating a special offer- buy multi products giving one free product
    By Mackers in forum Setting Up Specials and SaleMaker
    Replies: 1
    Last Post: 16 Jan 2013, 01:01 PM
  2. Multi-level categories navigation menu
    By AdvanceByDesign in forum All Other Contributions/Addons
    Replies: 0
    Last Post: 6 Oct 2012, 11:06 AM
  3. v139h Make configuration menu multi-column so it fits on screen?
    By johnlewisdesign in forum Customization from the Admin
    Replies: 0
    Last Post: 1 May 2012, 12:01 AM
  4. How to customize all menu to support multi-lang?
    By mdivk in forum Addon Language Packs
    Replies: 2
    Last Post: 19 Nov 2011, 02:57 PM
  5. Creating a multi-zoned zencart website
    By krikey72 in forum General Questions
    Replies: 0
    Last Post: 25 Apr 2007, 05:28 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