New Sidebar widget not showing

Created now sidebar and added taxonomies. Test the customizer, set to sidebarright, content left. Tried both boxed and fullwidth. Neither way would show. https://www.screencast.com/t/5FD9NlVINT

We need to have sidebars on posts only, not on category and custom post type category pages.

Thanks!

Hi There,

Thank you for writing in, please navigate to Theme Options > Layout and Design and set the Content Layout to Content Left, Sidebar Right just like on your screenshot.

Then navigate to Theme Options > Blog and set the first Layout option to Use Global Content Layout
The second Layout option is for Archive pages set that to Fullwidth.

Hope it helps,
Cheers!

Hi sorry, I just corrected and tested. Thanks!

Hi,
To show custom sidebar on single post view for specific categories only (current and, writers-cafe in your case), please add this snippet into functions.php file in the child theme directory after following what my colleague friech suggested:

add_filter( 'x_enqueue_parent_stylesheet', '__return_true' );

add_filter( 'ups_sidebar', 'support_articles_sidebar' );
function support_articles_sidebar($sidebar){
	if(is_singular( 'post' ) && in_category(array('current', 'writers-cafe'))){
		return 'ups-sidebar-only-show-on-postsarticles';
	}
	return $sidebar;
}

Thanks.

Great, thanks for the help!

You are most welcome. :slight_smile:

After working with the functions.php, I am getting an error that the template is not being recognized for the child theme. Is there a reason why this would suddenly happen?

Hello @chet,

Thanks for updating the thread.

Can you please let us know the error message you are seeing? I tried logging into the backend and seems that the login details are not working out. Can you please confirm?

Thanks.

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.