Is there a way to have an element either apply to or be excluded from a particular URL path. We’re trying to integrate BetterDocs for our internal help system in WordPress for our content editors. When we try to exclude the site header and footer from the Docs post type, it works for that particular custom post. However, it has some category and keyword custom post types as well. While we could add every category and keyword to exclude the header/footer elements, we’d have to touch this element every time we added a new category or element. It would be nice to have the display rule option of “exclude everything under /docs* on the site” or something like that. There are actually several elements we inject for our header and footer, so manually updating all of these with the category and tag display rules would be cumbersome. Happy to look at alternatives as well if there’s a better strategy.
We haven’t made the docs private yet, so you can reproduce what we’re experiencing by going to the URL in this ticket and then selecting the “News” category. That will take you to a category page where parts of the header and footer aren’t suppressed.
I recall seeing doc archives in the settings at one time and then couldn’t find it later. I discovered there’s a setting in BetterDocs (Enable Built-in Documentation Page). If you deselect this option choose your own custom starting page for documentation (i.e. a regular WordPress page that you add shortcodes to), then the Docs Archive option disappears in the GP Elements display rules screen. Reselecting this option made the archives option available and we’re able to suppress what we need to.