Tagged: x
-
AuthorPosts
-
December 28, 2016 at 11:15 pm #1308137
eywoaworldParticipantDear 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
December 28, 2016 at 11:59 pm #1308165
Rue NelModeratorHello 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.
December 29, 2016 at 12:58 am #1308192
eywoaworldParticipantHey 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
December 29, 2016 at 1:20 am #1308212
Paul RModeratorHi,
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.
December 29, 2016 at 2:57 am #1308262
eywoaworldParticipantHey 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
December 29, 2016 at 3:03 am #1308272
Paul RModeratorHi 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
-
AuthorPosts
- <script> jQuery(function($){ $("#no-reply-1308137 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>
