Site logo

Archived topic

Disable second-level navigation

3 replies · Started by Camilo Luna on September 20, 2022

Viewing posts 1–4 of 4

Hi,

Is there a way to change the navigation to 1 level only? I'd like to keep the items in the menu to get the "current_page_item" styling, but don't want those second-level items to be shown.

Can this be achieved through hooks or filters? Or should I hide them with CSS (not ideal because of the arrow and spacing).

Thanks.

Hi there,

GP doesn't have control over how menu items are structured.

So there's no such solution or filter from the theme, unfortunately.

Maybe just use CSS.

Thanks for the answer Ying, I'll go ahead with CSS then.

You are welcome :)

This archived topic is closed to new replies.