Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8456299
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T12:30:45+00:00 2026-06-10T12:30:45+00:00

I’m trying to add a secondary menu bar besides the main menu bar because

  • 0

I’m trying to add a secondary menu bar besides the main menu bar because I want to keep the main menu with all the categories listed and then an individual menu per website/store within the same magento shop. The theme I’m using already comes with a menu widget and I sort of accomplish what I wanted but I have a little CSS styling issue. let me explain.

In order to have two menus, I did the following.

  1. Copied community/Company/MenuWidget to local/MyCompany/MyMenuWidget
  2. replaced all the references in all the files found under Block, Helper, etc, controllers, Model, that pointed to Company_MenuWidget to MyCompany_MyMenuWidget. I basically cloned the Menu Widget.
  3. Added the following lines to css.xml under

< reference name=”header” >

< block type=”cms/block” name=”cms_my_menu_block” >

< action method=”setBlockId” >< block_id>my_menu_block < /block_id ><
/action> < /block>

  1. Added the following line to header.phtml

< div class=”my-class” >< ?php echo
$this->getChildHtml(‘cms_my_menu_block’) ?>< /div>

  1. Added a class to the CSS styles sheet ‘my-class’ with the same values of the nav-container class and then modified the valued to position the menu where I wanted it.

  2. duplicated the MenuWidget styles sheet and renamed it as needed.

  3. Created a block with the identifier for the store/website I wanted it to show up and it did.

Now the problem I’m facing is that the original menu is partially picking up the copied styles sheet so modifications I do to the copy, is partially affecting the main, not all the modifications. For example, I was able to move the container down and position it but now the “dropdown pop-ups” which I had to reposition as well, are being affected on both menus when I move them.

How can I completely separate the style sheets? I’m not even sure why the other menu bar is picking up on the new style sheet.

Any help is appreciated it.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-10T12:30:46+00:00Added an answer on June 10, 2026 at 12:30 pm

    The reason the “other” menu is reacting to both stylesheets is because both stylesheets are loading and you probably didn’t change the classes/ids. You can remove the other one using your local.xml probably in the default reference:

    <reference name="head">
        <action method="removeItem">
            <type>skin_css</type>
            <name>css/path/to.css</name>
        </action>
    </reference>
    

    A beter way to handle this would be to let the other menu do its thing and override the parts you want to with your own module. I think how to do that is out of the scope of this/any answer, though.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a string like this: La Torre Eiffel paragonata all&#8217;Everest What PHP function
I am trying to understand how to use SyndicationItem to display feed which is
Basically, what I'm trying to create is a page of div tags, each has
link Im having trouble converting the html entites into html characters, (&# 8217;) i
I want to count how many characters a certain string has in PHP, but
I am trying to render a haml file in a javascript response like so:
I have a French site that I want to parse, but am running into
I want use html5's new tag to play a wav file (currently only supported
I'm parsing an RSS feed that has an &#8217; in it. SimpleXML turns this
I want to show the soap response to UIWebview.. my soap response is, <p><img

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.