-
AuthorPosts
-
May 28, 2014 at 3:59 am #49151
here is the link to my problem. I have added all that code above and it just won’t work for me.
May 28, 2014 at 4:28 pm #49465Hi Shannon,
I can see that you have sidebar though it was pushed down.
Could you try adding this css?
.post-type-archive-product .x-main { float:left; }
Hope this helps.
May 28, 2014 at 6:13 pm #49491But where should I add that code? in customizer?
May 28, 2014 at 6:21 pm #49495Holy crap it worked! thanyou thanyou thankyou!
May 28, 2014 at 6:33 pm #49503Actually, it only worked for the shop page, I put that CSS in Customizer, Where should i put that code for the product page? sorry i’m so lame at this.
May 29, 2014 at 10:44 am #49867Hi Shannon,
Glad to hear that’s working for you!
Individual product pages don’t have a sidebar by design in the theme. There isn’t a way to enable them there. This has however been added to our list of feature request. This way it can be taken into consideration for future development.
May 29, 2014 at 7:14 pm #50165Really? Well I would have to say that’s a massive theme issue that needs to be addressed,
After my clients click “Ad to cart” whats the best way for them to navigate to the cart? is there a way to put text in the header that connects to the cart? and accounts like this shop up the top right corner? http://www.theiconic.com.au/
May 30, 2014 at 3:13 pm #50464Hi Shannon,
You could use header widget area and use text and woocommerce widgets. It expand when user click the “+” icon on top of the header.
Maybe this will help you for your sidebar
Add this code at your child theme’s functions.php
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() ) { $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;
Let us know.
May 30, 2014 at 8:21 pm #50558Yeah, I don’t like the idea of the cart hiding behind that + up the top right, I need the cart to always be visible.
Please see this thread http://theme.co/x/member/forums/topic/cart-my-account-in-top-bar/#post-50557
May 31, 2014 at 8:51 pm #50761Sure, thank you for pointing out another thread.
June 22, 2014 at 7:15 am #59504Am I right in thinking that this edit can not be done in version 2? wp-sidebar seems to have been removed.
June 22, 2014 at 8:00 am #59507Ok I have found the wp-sidebar file but it seems to have changed, doesn’t look like it’s been described here
June 22, 2014 at 6:07 pm #59614I gave up on trying this for now, it was taking too much time away from actually working my job.. Let me know if you get it to work tho.
June 23, 2014 at 12:19 pm #60023Hey there,
Quite a bit has changed structurally since version 2.0. We’d be happy to help you work some of this out. Our support is limited in that we can’t provide full custom development, but we may be able to help with minor changes. If you still need help with this, feel free to open a new thread, so we can prevent confusion with code from older versions. After opening a thread, it would help us if you could provide a URL to the site and WordPress credentials. Feel free to add these in a private reply.
Take care!
July 8, 2014 at 12:39 pm #66349Has the wp_sidebar.php changed since the last update? I can’t find the function:
elseif ( function_exists( ‘is_product’ ) && is_product() ) {
$layout = $shop_layout;
}Also does a change in the woocommerce.php not work for me.
I hope that you can help me.
-
AuthorPosts