Site logo

[Resolved] Mega Menu style child items

Home Forums Support [Resolved] Mega Menu style child items

Home Forums Support Mega Menu style child items

Viewing 12 posts - 1 through 12 (of 12 total)
  • Author
    Posts
  • #980856
    Kim

    Hi,

    I’ve added the simple mega menu from the Generatepress documentation and tried to customize the Child Items with a custom class to make them look more like a headline (uppercase and bigger font-size). When I add the custom class to the child item in the menu, it also styles the grandchild items. Can you help me with what I am doing wrong?

    Many thanks!
    Maike

    #980927
    Leo
    Staff
    Customer Support

    Hi there,

    Any chance you can link us to the site in question?

    You can edit the original topic and use the private URL field.

    Let me know 🙂

    #981085
    Kim

    Hi Leo, unfortunately it’s on a local installation at the moment.

    BR Maike

    #981191
    David
    Staff
    Customer Support

    Hi there,

    can you share the CSS you’re using to style the child items?

    #981698
    Kim

    Hi, I’ve tried to style the single item like this

    .menu-item-334 a {font-size: 18px !important;}

    for instance. But this also changes the style of the grandchild items in the column.

    #981704
    Leo
    Staff
    Customer Support

    This should style only the first level submenu:

    .main-navigation .main-nav ul > ul > li > a {
        font-size: 18px;
    }
    #982577
    Kim

    Hi Leo, this doesn’t work neither 🙁

    #982965
    Leo
    Staff
    Customer Support

    Any chance you can set up a staging site so we can see it?

    It’s really tough to provide help like this.

    #983583
    Kim

    I do understand. I will get back to this once the site is live.

    #984086
    Leo
    Staff
    Customer Support

    Sounds good 🙂

    #1066020
    Kim

    Hi, I got it going to work with this code:

    nav .main-nav .mega-menu > ul > li > a {
    	font-size:18px;
    }

    Many thanks!

    #1066619
    Leo
    Staff
    Customer Support

    No problem 🙂

Viewing 12 posts - 1 through 12 (of 12 total)
  • You must be logged in to reply to this topic.