Home › Forums › Support › PODs CPT – Sidebar This topic has 5 replies, 2 voices, and was last updated 6 years ago by Tom. Viewing 6 posts - 1 through 6 (of 6 total) Author Posts November 10, 2017 at 2:25 pm #421158 DavidStaff Customer Support Hi Tom, If i add a sidebar to the single blog post it also appears on the CPTs created in PODs. I notice the CPT’s carry the single class as do the posts and thought maybe i could target posts with this class that didnt have the single-post class.. Any thoughts? regards David November 10, 2017 at 8:14 pm #421305 TomLead Developer Lead Developer Single posts will inherit the Single post sidebar layout set in the Customizer. Are you wanting to disable the sidebar on this specific post type? November 11, 2017 at 12:28 am #421398 DavidStaff Customer Support Hi Tom Yes i have three CPTS that dont require it thanks David November 11, 2017 at 8:38 am #421762 TomLead Developer Lead Developer You could do this: add_filter( 'generate_sidebar_layout', 'tu_cpt_sidebar_layout' ); function tu_cpt_sidebar_layout( $layout ) { if ( is_singular( 'post-type-name' ) ) { return 'no-sidebar'; } return $layout; } November 12, 2017 at 12:34 pm #422550 DavidStaff Customer Support Thank you Tom. Much appreciated. November 12, 2017 at 8:45 pm #422749 TomLead Developer Lead Developer You’re welcome 🙂 Author Posts Viewing 6 posts - 1 through 6 (of 6 total) You must be logged in to reply to this topic. Log In Username: Password: Keep me signed in Log In