[Resolved] expand the menu

Home Forums Support [Resolved] expand the menu

Home Forums Support expand the menu

Viewing 15 posts - 1 through 15 (of 17 total)
  • Author
    Posts
  • #147845
    guillermochico

    menu

    Hi, I would like to expand the menu (view image). Thanks πŸ˜‰

    #147850
    bdbrown

    Hi Guillermo. It appears that your image didn’t get inserted. Can you post a link? Thanks.

    #147862
    guillermochico
    #147867
    Tom
    Lead Developer
    Lead Developer

    Are 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/

    #147922
    guillermochico

    Thanks! πŸ™‚

    Yes, Please.

    #148014
    Tom
    Lead Developer
    Lead Developer

    Did the above CSS work for you? πŸ™‚

    #148312
    guillermochico

    Yes! πŸ˜‰
    I want to make the sub-menu wider. Thanks

    #148322
    Tom
    Lead Developer
    Lead Developer

    Glad it worked πŸ™‚

    #148334
    guillermochico

    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

    πŸ˜‰

    #148350
    bdbrown

    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 (.).

    #148398
    Tom
    Lead Developer
    Lead Developer

    Great explanation @bdbrown πŸ™‚

    #148403
    guillermochico

    bdbrown Thanks!

    not work, you can help me please? πŸ™‚

    .sub-menu ul ul {
    width: 250px;
    }

    #148423
    bdbrown

    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?

    #148441
    guillermochico

    I want change 2st level of submenu items. Thanks.

    #148523
    bdbrown

    Then you would add another ul level:

    .main-navigation ul ul ul {
        width: 200px;
    }
    
Viewing 15 posts - 1 through 15 (of 17 total)
  • You must be logged in to reply to this topic.