No sidebar on posts

Hi!

I can’t manage to have the sidebar on my posts and I can’t find why.
Also do you know how to remove:
the info about the article under the title of the article " Author, date, categories, number of comments"
and author at the end of the article “About & Latest Posts”

Thank you!

Hi,

  1. To add a sidebar to your posts, add the code below in your child theme’s functions.php file.
function add_posts_sidebar($layout) {  
     if(is_singular('post')){
          $layout= 'content-sidebar';
     }
     return $layout;
}

add_filter('x_option_x_layout_content', 'add_posts_sidebar',999);
  1. To remove those information below your post title, turn off post meta under Appearance > Customize > Blog > Content > Post Meta.

  1. The author at the end of the article is being added by third party Starbox plugin. I am not exactly sure how that plugin works but you can check it’s settings and see if you can disable it.

Thanks

Hi!

Thank you for your help!

For the 1st point, I didn’t created a child theme. Is there another way to put the side bar?

Thanks

Hello @Cestph,

Installing and working with child theme is easy. You can read our documentation on settings up child theme and benefit it provides while making core changes: https://theme.co/apex/forum/t/setup-how-to-setup-child-themes/57

Please download child theme from following source: https://theme.co/apex/child-themes

Thanks.