- This topic has 16 replies, 3 voices, and was last updated 7 years, 5 months ago by
bdbrown.
-
AuthorPosts
-
October 26, 2015 at 9:02 pm #147845
guillermochico
Hi, I would like to expand the menu (view image). Thanks π
October 26, 2015 at 9:38 pm #147850bdbrown
Hi Guillermo. It appears that your image didn’t get inserted. Can you post a link? Thanks.
October 26, 2015 at 10:03 pm #147862guillermochico
http://s2.subirimagenes.com/privadas/previo/thump_2336822menu.png
The web is in maintenance mode. SorryOctober 26, 2015 at 11:12 pm #147867Tom
Lead DeveloperLead DeveloperAre you wanting to make the sub-menu wider?
If so, this CSS should do it:
.main-navigation ul ul { width: 200px; }
Adjust the px as needed.
Adding CSS: https://generatepress.com/knowledgebase/adding-css/
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/
Ongoing Development: https://generatepress.com/ongoing-developmentOctober 27, 2015 at 4:39 am #147922guillermochico
Thanks! π
—
Yes, Please.
October 27, 2015 at 10:52 am #148014Tom
Lead DeveloperLead DeveloperDid the above CSS work for you? π
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/
Ongoing Development: https://generatepress.com/ongoing-developmentOctober 28, 2015 at 10:43 am #148312guillermochico
Yes! π
I want to make the sub-menu wider. ThanksOctober 28, 2015 at 11:33 am #148322Tom
Lead DeveloperLead DeveloperGlad it worked π
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/
Ongoing Development: https://generatepress.com/ongoing-developmentOctober 28, 2015 at 12:38 pm #148334guillermochico
Tom, Help me with please.
How to identify the name of the menu and other possible changes css?there somehow?
do not ask for muchπ
October 28, 2015 at 1:00 pm #148350bdbrown
Hi Guillermo. You would use a tool like Firebug in Firefox or Google Developer Tools in Chrome. Right-click on your page on, for example, the menu. Then select “Inspect element” from the pop-up menu. This will open a window at the bottom of your display with the related line of HTML code highlighted. For each element you can see the assigned ID (id=””) and Class (class=””) names. When used in CSS, element IDs are prefixed with a pound sign (#); classes are prefixed with a dot (.).
October 28, 2015 at 4:10 pm #148398Tom
Lead DeveloperLead DeveloperGreat explanation @bdbrown π
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/
Ongoing Development: https://generatepress.com/ongoing-developmentOctober 28, 2015 at 4:33 pm #148403guillermochico
bdbrown Thanks!
not work, you can help me please? π
.sub-menu ul ul {
width: 250px;
}October 28, 2015 at 8:41 pm #148423bdbrown
Each menu level below the main menu has a class of “sub-menu”. This means that your code won’t be applied because the class of “.sub-menu” would apply to every level; there wouldn’t be any “ul” elements without that class. The code Tom posted above will target the 1st level of submenu items. Are you trying to change something else?
October 29, 2015 at 1:48 am #148441guillermochico
I want change 2st level of submenu items. Thanks.
October 29, 2015 at 7:32 am #148523bdbrown
Then you would add another ul level:
.main-navigation ul ul ul { width: 200px; }
-
AuthorPosts
- You must be logged in to reply to this topic.