Primary menu and secondary menu in mobile menu, with secondary menu in smaller font size

Hi there

In my desktop menu I use primary menu and secondary menu next to each other. The secondary menu is in a smaller font size.

For mobile menu I made a new menu in settings > menu with all items of primary and secondary included.

Now I want to make in mobile menu the “secondary menu” items a smaller font size.

How can I do this?

Thanks in advance!

Hi @Woordenaar,

You have a specific use case that none of our Navigation elements support and you need to add custom CSS to achieve the feature that you want.

Please kindly go to Navigation Modal element that you used for the mobile menu and click the Customize tab and select the Element CSS option and add the CSS code below:

$el li.secnav a .x-anchor-text-primary {
    font-size: 0.75em !important;
    color: rgba(255,255,255,0.4) !important;    
}

You already added the secnav class and I made use of that in the suggested CSS code. The $el represents the Navigation Modal item wrapper.

The code above is a suggestion for you to get started with your customization. This is not part of the original theme features and full implementation of what you want is outside of our support scope.

Thank you for your understanding.

Hi

Thank you :slight_smile: This worked perfectly…

You’re welcome!
We’re glad @Christopher were able to help you out.

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.