Sidebar not displaying on Category page

Hi team, I just created 4 ‘Category’ pages for my blog posts. I’ve edited the setting through the main edit option as well as through the Customize option to ‘Content left, Sidebar right’. However the sidebar is still not showing. Would you be able to assist please? Thanks, R

Hi @fitnizfury,

Thanks for writing in.

I have checked your site. As I checked, I could see that there is a sidebar showing in your blog posts.

Would you mind sharing us more details of the issue.

Thanks.

Hi team, Yes they show on the blogs posts. I was, however referring to the drop-down category pages under BLOG. Here are the links…
https://fitnizfury.com/category/blog/fitness/


https://fitnizfury.com/category/blog/motivation/

Thanks so much
R

Hi,

To add sidebar to your category pages, add the code below in your child theme’s functions.php file.

add_filter('x_option_x_layout_content', 'add_category_sidebar',999);
function add_category_sidebar($layout) {  
    if ( is_category() )  {      
       $layout = "content-sidebar";
   }
  return $layout;
}

Please add it after this line

// Additional Functions
// =============================================================================

If you haven’t installed a child theme yet kindly refer to the link below for your guide.

I installed Child theme, added CSS to both Global and additional and nothing changed.

Hi There,

Can you please check your Archive layout option. its set two global or not.
Go to Theme option -> Blog

Hope this helps!

Thanks

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