I have a website that has two parts, a magazine (https://simipress.com/home/) and a small press (https://simipress.com/books/) I want to disable the primary navigation on the small press and all its child pages.
I know I can remove the navigation bar from different pages using this code:
body:not(.page-id-10) .main-navigation {
display:none;
}
Is there a way I can apply it to all child categories of /books without having to type in each individual page ID?
If not, I have a workaround by doing with page headers, but it’s more work. I originally just excluded the header in the page editor, which is easy, but when I exclude primary navigation that way it also excludes my off canvas panel on mobile, which I can’t do. Just thought I would ask. Thank you.