Delete sidebar for single job post
-
I like the plugin and want to use it on our website. Unfortunately the single job post shows an empty sidebar. I spoke to the developer of my theme and he advised me to change the functions php (https://www.thecodepoetry.com/add-the7-meta-boxes-to-custom-post-types/). But it does not work. Maybe I am addressing not the right custom post type. What is the correct post type for single job posts. single-job seems to be not correct.
add_action( ‘get_header’, ‘cp_sidebar_filter’, 10 );
function cp_sidebar_filter() {
$config = Presscore_Config::get_instance();
if( ‘single-job’ == get_post_type() ) {
$config->set( ‘sidebar_position’, ‘disabled’ );
}
}The page I need help with: [log in to see the link]
- The topic ‘Delete sidebar for single job post’ is closed to new replies.