Search for: Log In Free Support [Support request] PHP target for Allow Sidebars with Sections Home › Forums › Support › PHP target for Allow Sidebars with Sections This topic contains 1 reply, has 2 voices, and was last updated by David 1 month, 1 week ago. Viewing 2 posts - 1 through 2 (of 2 total) Author Posts April 23, 2020 at 3:09 am #1250824 Yurik I have installed the GP premium (plus Dispatch from site library) I would like to add a sidebar on a specific page while using sections PHP code: add_filter( ‘generate_sections_sidebars’,’__return_true’ ); I have installed the GP premium, if it not a Child theme, where do I have to copy-paste this PHP code? Please help and explain how to action in my situation. example: https://spainru.com/biznes-v-ispanii/ Thank you! Yurik April 23, 2020 at 5:54 am #1251116 David Customer Support Hi there, add this function to allow Sidebars to be displayed on pages with sections: add_filter( 'generate_sections_sidebars','__return_true' ); Then use the Layout Metabox to display a Sidebar on that page: https://docs.generatepress.com/article/layout-metabox-overview/ Documentation: http://docs.generatepress.com/ Adding CSS: http://docs.generatepress.com/article/adding-css/ Author Posts Viewing 2 posts - 1 through 2 (of 2 total) You must be logged in to reply to this topic.