Archived topic
Hiding sidebars for custom post types
3 replies · Started by ch1800 on January 1, 2021
Happy New Year and best wishes to all!
I'm working on a project that is using a custom post type for a product catalog.
I have enabled right side sidebar for standard posts but don't want to get those widgets for the CPTS at all.
They are currently displaying at bottom of page of those CPTs instead of the right sidebar for some reason but would like to hide them completely as they are not relevant here.
Thanks.
Hi there,
you can use a Layout Element to disable the sidebars:
https://docs.generatepress.com/article/layout-element-overview/
You should see your custom Post Type (single) and its Post Type Archive in the display rules.
Nice, didn't think about this option.
Works fine, with thanks!
Glad to hear that!