Site logo

Archived topic

hide cart in the menu on certain pages

3 replies · Started by Victor Valladolid on June 2, 2021

Viewing posts 1–4 of 4

Hi there,

Try this CSS for the page you've linked:

body.page-id-808 .main-navigation .menu-bar-item {
    display: none;
}

You can expand to multiple pages like this:

body.page-id-808 .main-navigation .menu-bar-item,
body.page-id-xxx .main-navigation .menu-bar-item,
body.page-id-xxxx .main-navigation .menu-bar-item {
    display: none;
}

Adding CSS: https://docs.generatepress.com/article/adding-css/

Let me know if this helps :)

Hi Leo,
Excellent, it works perfectly.
Thank you very much,
Greetings,

No problem :)

This archived topic is closed to new replies.