Hello @psycholoogmarieke,
For our Nav Menu, you can change the size, line height, and letter spacing in mobile view for the typography. You can do that by :
- go to the editor and click on the ‘nav menu’ block that you have placed on your page.
- click on ‘settings’ at the top left corner or you can press ‘ctrl + shift + ,’ in Windows or ‘command + shift + ,’ in Mac.
- on the right side, you can find the ‘style’ section and click on it.
- scroll down to find ‘item menu style’. In there you will find ‘typography’.
- click on the ‘pencil’ icon and more menus should appear. On the left side of size, line height, and letter spacing you can find the ‘device icon’. You can select the device to change the size, line height, and letter spacing responsively.
if that is not what you are looking for, and want to add your own css code you can do that by:
- go to the editor and click on the ‘nav menu’ block that you have placed on your page.
- click on ‘settings’ at the top left corner or you can press ‘ctrl + shift + ,’ in Windows or ‘command + shift + ,’ in Mac.
- on the right side, you can find the ‘settings’ section and click on it.
- scroll down to find ‘advanced’ and click on it. add your own CSS classes on the item.
- back to the editor, make a new ‘section’ and add a ‘custom html’ block, and write your CSS code there.
you can find our menu class if you right-click on it and select inspect element (in this case, our menu item class is ‘menu-item’). if you want reference here where I change the background color of the menu item. here I added the class “added-menu” for the menu block.
<style>
@media screen and (max-width: 500px) {
.added-menu .menu-item a{
background-color:red;
}
}
</style>
I hope this help!
-
This reply was modified 1 year, 4 months ago by
gowinda.