-
AuthorPosts
-
July 14, 2014 at 1:18 am #68220
Hello peeps,
Poor me… I was playing with Customizer and clicked something I shouldn’t have.
The result is that the default sidebar is no longer showing on Product Pages..
I followed the tips I read in another post here and my settings are:Integrity
Site Layout: fullwidth
Content layout: content left, sidebar rightWoocommerce
Settings-products-Product Archive / Shop Page: shopCustomizer
Woocommerce-shop layout: keep sidebarI’m using the standard theme, so I’m really at loss to what to do next.
Product page example: http://go4emarket.com/product/go4-vega-x1/Thank you for your help,
Marco
July 15, 2014 at 2:00 pm #68933Hi there,
Can you confirm that you are on the latest version of X? We released an update this week that changed a few things with sidebars to make them for intuitive. For example, the product category pages are now the same layout as the shop page. Also, we no longer have “keep sidebar” as an option – The functionality is the same, but the wording has changed to better explain what’s happening. If you’re missing a sidebar, it could be because your stack content layout is “Fullwidth” which will be the default for everything else.
Also, the single product pages won’t have a sidebar.
July 22, 2014 at 2:15 am #71834Thank you for the reply
I didn’t receive any update notification for X. Is that normal?
Regards
July 22, 2014 at 3:54 pm #72138Hi Marco,
Notice the following things:
1) By default the single product item doesn’t have sidebar, check this from our demo: https://theme.co/x/demo/shop/integrity/product/happy-ninja-2/, only archive& main shop page can have sidebar.
2) You’re currently using Version: 2.0.0 of X, whilst we’ve updated it to version 2.2.0
Do the following things:
1) Update your theme to latest version by checking this article: http://theme.co/x/member/kb/updating-your-theme-and-plugins/
2) Now, we need to tweak the default function & files of your theme to show sidebar in single product items page. I’d advise that you setup a child theme. This allows you to make code changes that won’t be overwritten when an X update is released.
After your child theme is setup, add the following codes into child theme functions.php file:
if ( ! function_exists( 'x_get_content_layout' ) ) : function x_get_content_layout() { $stack = x_get_stack(); $mod = get_theme_mod( 'x_' . $stack . '_layout_content' ); $content_layout = ( $mod == '' ) ? 'content-sidebar' : $mod; if ( $content_layout != 'full-width' ) { if ( is_home() ) { $mod = get_theme_mod( 'x_blog_layout' ); $layout = ( $mod == 'sidebar' ) ? $content_layout : $mod; } 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_product() || is_product_category() ) { $mod = get_theme_mod( 'x_woocommerce_shop_layout_content' ); $layout = ( $mod == 'sidebar' ) ? $content_layout : $mod; } 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() ) { $mod = get_theme_mod( 'x_woocommerce_shop_layout_content' ); $layout = ( $mod == 'sidebar' ) ? $content_layout : $mod; } else { $mod = get_theme_mod( 'x_archive_layout' ); $layout = ( $mod == 'sidebar' ) ? $content_layout : $mod; } } elseif ( x_is_product() ) { $layout = 'full-width'; } else { $layout = $content_layout; } } else { $layout = $content_layout; } return $layout; } add_action( 'customize_save', 'x_get_content_layout' ); endif; function ups_display_sidebar_v2( $default_sidebar ) { $q_object = get_queried_object(); $sidebars = get_option( 'ups_sidebars' ); foreach ( $sidebars as $id => $sidebar ) { if ( x_is_shop() || x_is_product() || is_product_category() ) { if ( array_key_exists( 'index-shop', $sidebar ) && $sidebar['index-shop'] == 'on' ) { return $id; } } } return $default_sidebar; } add_filter( 'ups_sidebar', 'ups_display_sidebar_v2', 9999 );
Thanks for understanding, Take care!
August 7, 2014 at 10:12 am #79796I works almost fine but with the icon stack, the sidebar doesn’t show properly, it goes on top of the content.
Any help please.
August 7, 2014 at 10:39 am #798241) You’re currently using Version: 2.0.0 of X, whilst we’ve updated it to version 2.3.0 Update your theme to latest version by checking this article: http://theme.co/x/member/kb/updating-your-theme-and-plugins/
2) Would you mind providing us with login credentials so we can take a closer look? To do this, you can make a post with the following info:
– Link to your site
– WordPress Admin username / password
– FTP credentialsDon’t forget to select Set as private reply. This ensures your information is only visible to our staff.
-
AuthorPosts