Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #1308137
    eywoaworld
    Participant

    Dear X

    I would like to display post on side bar like on this page

    But i m not able to do it on my website into this page only

    I m using integrity and i guess i have to change page attribute but even if i change template to layout – content left, side bar right it does not work.

    Any suggestions?

    Regards

    Fabien from Eywoa

    #1308165
    Rue Nel
    Moderator

    Hello There,

    Thanks for writing in! From the looks of it, I am guessing that the Post page is se to have a fullwidth layout. Please go to your customizer Appearance > Customize > Blog > Layout and select “Use Global Content Layout”. This should display a sidebar in your blog index.

    Please let us know how it goes.

    #1308192
    eywoaworld
    Participant

    Hey X

    I m using STACK Integrity CONTENT Fullwide.

    Is it the reason why i does not show? If i change it to content left, sidebar right will it affect my static pages?

    Regards

    #1308212
    Paul R
    Moderator

    Hi,

    Yes, it will change your static pages.

    To fix it, you can try adding this in your child theme’s functions.php file.

    
     function x_get_content_layout() {
    
        $content_layout = x_get_option( 'x_layout_content' );
    
        if ( $content_layout != 'full-width' ) {
          if ( is_home() ) {
            $opt    = x_get_option( 'x_blog_layout' );
            $layout = ( $opt == 'sidebar' ) ? $content_layout : $opt;
          } elseif ( is_singular( 'post' ) ) {
            $meta   = get_post_meta( get_the_ID(), '_x_post_layout', true );
            $layout = ( $meta == 'on' ) ? 'full-width' : $content_layout;
          } elseif ( x_is_portfolio_item() ) {
            $layout = 'full-width';
          } elseif ( x_is_portfolio() ) {
            $meta   = get_post_meta( get_the_ID(), '_x_portfolio_layout', true );
            $layout = ( $meta == 'sidebar' ) ? $content_layout : $meta;
          } elseif ( is_page_template( 'template-layout-content-sidebar.php' ) ) {
            $layout = 'content-sidebar';
          } elseif ( is_page_template( 'template-layout-sidebar-content.php' ) ) {
            $layout = 'sidebar-content';
          } elseif ( is_page_template( 'template-layout-full-width.php' ) ) {
            $layout = 'full-width';
          } elseif ( is_archive() ) {
            if ( x_is_shop() || x_is_product_category() || x_is_product_tag() ) {
              $opt    = x_get_option( 'x_woocommerce_shop_layout_content' );
              $layout = ( $opt == 'sidebar' ) ? $content_layout : $opt;
            } else {
              $opt    = x_get_option( 'x_archive_layout' );
              $layout = ( $opt == 'sidebar' ) ? $content_layout : $opt;
            }
          } elseif ( x_is_product() ) {
            $layout = 'full-width';
          } elseif ( x_is_bbpress() ) {
            $opt    = x_get_option( 'x_bbpress_layout_content' );
            $layout = ( $opt == 'sidebar' ) ? $content_layout : $opt;
          } elseif ( x_is_buddypress() ) {
            $opt    = x_get_option( 'x_buddypress_layout_content' );
            $layout = ( $opt == 'sidebar' ) ? $content_layout : $opt;
          } elseif ( is_404() ) {
            $layout = 'full-width';
          } else {
            $layout = $content_layout;
          }
        } else {
          $layout = $content_layout;
        }
        
          if ( is_page_template( 'template-layout-content-sidebar.php' ) ) {
            $layout = 'content-sidebar';
          } elseif ( is_page_template( 'template-layout-sidebar-content.php' ) ) {
            $layout = 'sidebar-content';
          } elseif ( is_page_template( 'template-layout-full-width.php' ) ) {
            $layout = 'full-width';
          }
    
        return $layout;
    
      }
    

    Hope that helps.

    #1308262
    eywoaworld
    Participant

    Hey X

    So i manage to find another solution like change content full wide to contest left sidebar right and for each static page layout no container header footer so it does not change all the pages.

    Now my blog post, index and page layout is like this : https://www.eywoa.com/wakeboard-coach-abu-dhabi/

    Which is a bit better but i can t figure out why my sidebar display down the post and not on the right.

    Cheers and thanks for your help.

    Fabien

    #1308272
    Paul R
    Moderator

    Hi Fabien,

    You need to adjust your content width under layout and design in the customizer.

    http://screencast.com/t/usLk6viP3

    Right now, the content width is set to 97% which takes almost the entire width of your site.

    Thanks

  • <script> jQuery(function($){ $("#no-reply-1308137 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>