Sidebar on all Blog Posts

Hello!

I am having an issue getting my blog index sidebar onto all of my blog posts. I have my blog set to inherit the Global Layout, which is set to Content Left, Sidebar right, yet I can’t assign a sidebar to any of my posts. Anything I am doing wrong? Here is an example of a posts. I will leave my credentials as well.

Thanks!

Hi There,

You will have to assign sidebar to each post by head over to Appearance -> Sidebar section.

For more information, please refer to our guide here (https://theme.co/apex/forum/t/features-unlimited-sidebars/95).

Thanks!

I have already tried this. Regardless of creating a new sidebar and adding widgets to the sidebar in appearance, the blog posts only show up as full width. I have tried everything I can right now. Any other suggestions?

1 Like

Hi There,

Please find and remove this custom CSS:

.single-post .x-sidebar.right {
    display: none;
}
.single-post .x-main.left {
    float: none;
    display: block;
    width: auto;
    padding-right: 0;
}

After that adding the following code under functions.php file locates in your child theme:

add_filter( 'ups_sidebar', 'x_single_post_sidebar' );
function x_single_post_sidebar($sidebar){
	if( x_is_product() ){
		return 'ups-sidebar-real-blog-sidebar';
	}
	return $sidebar;
}

Hope it helps :slight_smile:

Worked! Thanks you so much!

On behalf of my colleague, you’re welcome. Cheers! :slight_smile:

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