WebsiteBaker Support (2.13.x) > General Help & Support
Template question 1
applepie:
My top menu I gave the id ".nav-menu" and the footer id is ".footermenu" But somehow my footer menu is still reading from the top menu CSS. What have I done wrong?
Top Menu
.nav-menu,
.nav-menu * {
margin: 0;
padding: 0;
list-style: none;
}
etc...
Footer Menu
.footermenu {
overflow: hidden;
color: #febd01;
}
etc...
ruebenwurzel:
Hello,
your menu calls uses both the same classes.
--- Quote --- CLASS ATTACHED TO
------------ -------------------------------------------------------
menu-top First menu tag only
menu-parent Every parent menu item of the current page.
menu-current Only the menu item for the current page.
menu-sibling Every sibling of the current page.
menu-child Every sub-menu of the current page.
menu-expand Every menu item with children.
menu-first First item in any menu or sub-menu.
menu-last Last item in any menu or sub-menu.
--- End quote ---
look at the doku in modules/show_menu2/DOC
Please check your .css if this classes are configured. If yes, both menu calls use this classes. If you wanna have different classes for the menues you can configure the show_menu2 call to use your own classes. You also can adapt your css files. f.e.
--- Code: ---.class .class {}
.nav-menu .menu-current {color: #ffffff;}
.footermenu .menu-current {color: #000000;}
--- End code ---
applepie:
Sorry, I dont understand what you mean by using the same class. The ID are different, so how can it be reading from the same class. I am sure I am not understanding it correctly.
The CSS I generated and attached here is intended to generate basic horizontal footer links with submenus. I know it's wrong, but I'm not sure where it has gone wrong.
Thanks.
crnogorac081:
Hi, is there a possibility to post your project online ? There are several free hosting peoviders. Its hard to help like this
ruebenwurzel:
--- Quote from: applepie on October 10, 2023, 01:27:06 AM ---Sorry, I dont understand what you mean by using the same class. The ID are different, so how can it be reading from the same class. I am sure I am not understanding it correctly.
The CSS I generated and attached here is intended to generate basic horizontal footer links with submenus. I know it's wrong, but I'm not sure where it has gone wrong.
Thanks.
--- End quote ---
You use classes and no ID's in your css. Classes start with '.', ID's with '#'
https://www.w3schools.com/html/html_id.asp
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version