How to customize display of vertical navigation menu items

Customizing menu items in vertical navigation may seem difficult, but it brings a lot of possibility and granularity.

If you want to know how to add icons, we recommend you to follow this article before : What icons can I use for my menu and on the whole site.

Hide text when navigation is collapsed

To hide menu item text (and leave only the icon) when the vertical navigation is in its collapsed state, just wrap the part to be hidden between <span> markups. Here is a classic example:

Create a title menu item

To create a menu item that has a “title display”, simply fill in the “CSS classes” field with the “menu-item–title” class. This element will automatically be displayed as a small separation dot when the navigation is collapsed.

Note that for decorative menu items, it is not necessary to fill in the URL field with a link.

Add a colored label next to the text

To have a colored badge next to the text you have to create a markup <ins> (with the text of your choice inside). This badge will look like a small dot when the navigation is collapsed. By default, this badge will take the background color and the text color of the primary buttons (options available through the WordPress Customizer). If you wish to change these colors here are some possible combinations :

Going further with icons!

The choice of icons is also very important and you can learn more about it in this article :  What icons can I use for my menu and on the whole site

Not Finding
What You Are Looking For?

Simply go to our support forums and describe the problem you are facing.
We will be happy to help you!

Discover MatchPress

Skip • Like • Super-Like

Add powerful matching features like Member likes, skips, super likes, conditional private messaging and much more.

Holiday, Weather & Festive effects
to pimp your WordPress Site