Can not figure out how to control a single page post through the Integrity Stack

I am running the latest updates to the pro-child theme 2.2.5 with the Integrity stack. I am also running “the grid” plugin to display my main blog page, which I can control. however, I can not change the single blog page display to have a sidebar in it with two columns. I also can not get the images to come up in the latest posts sidebar. I would like it to display like the Integrity example… http://demo.theme.co/integrity-1/5-reasons-you-need-the-x-theme/

My main blog page is… https://revivalbros.com/news-blog/
Example of a single post page… https://revivalbros.com/are-ugly-houses-really-good-investing-deals/.

How do I get the website to display the blogs\posts like the examples you post? is there a template for it or instruction on how to set it up. I searched on the forum and could not find anything explaining how to set it up.

  1. http://demo.theme.co/integrity-1/blog/
  2. http://demo.theme.co/integrity-1/5-reasons-you-need-the-x-theme/

Hello @Ripple_CG,

Thanks for asking. :slight_smile:

  1. The main blog index page on our demo pages is using Masonry Layout. You can enable Masonry Layout from Pro > Theme Options > Blog > Style and select Masonry.

  1. You can have sidebar on single post from Pro > Theme Options > Layout and Design > Content Layout and select Content Left, Sidebar Right or Sidebar Left, Content Right depending on your requirement.

  1. To display images on latest post, please use shortcode mentioned in following page:

http://demo.theme.co/integrity-1/shortcodes/recent-posts/

Thanks.

Thank you for getting back to me so quickly! Yes, I have already done what you have suggested above. My problem is not the recent posts or the main post page or getting the sidebar in the main blog page. it is the individual single post as seen in this example… https://revivalbros.com/how-to-renovate-your-first-rental-property-p2/ . How do I change this page to have a sidebar and to look more like your post example… http://demo.theme.co/integrity-1/5-reasons-you-need-the-x-theme/? The sidebar does not show up in the single post when I follow #2 suggestion above.

Hi,

To add sidebar to your single page, you can add the code below in your child theme’s functions.php file located at wp-content/themes/x-child/functions.php

// add sidebar to single post page
  function sidebar_single_post($layout) {  
   if(is_singular('post')) {      
       $layout = "content-sidebar";
   }
  return $layout;
}

add_filter('x_option_x_layout_content', 'sidebar_single_post',9999);

You may add it after

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

Hope that helps

Hi, I tied adding the code and it did not work. I added it to my pro-child theme folder. I do not have a x-child theme folder.

Hi Joe,

​To assist you better with this issue, would you mind providing us the url of your site with login credentials so we can take a closer look and investigate further?

To do this, you can create a secure note with the following info:
– Link to your site
– WordPress Admin username / password

To know how to create a secure note, please check this out: https://theme.co/apex/forum/t/how-to-get-support/288

Thank you.

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