• Hi team

    I have a menu item (sitemap) that I need to hide from the navigation bar. I have asked about this previously and was provided with a little bit of custom code to add into the CSS and that solution worked on the homepage (https://ww.wp.xz.cn/support/topic/remove-page-from-navigation-bar/)

    But I’ve noticed it doesn’t work for newly created posts – the page in the example is new and when I load it it shows the ‘Sitemap’ option as the second menu item.
    Is there any way I can remove this for all posts as well as pages?

    Thank you

    The page I need help with: [log in to see the link]

Viewing 1 replies (of 1 total)
  • sacredpath

    (@sacredpath)

    Automattic Happiness Engineer

    Hi there, let’s change the CSS selector on the CSS you previously received a bit. Replace what you have with the following.

    #site-navigation .page-item-7294 {
        display: none;
    }
Viewing 1 replies (of 1 total)

The topic ‘Custom code not working’ is closed to new replies.