Tagged: x
-
AuthorPosts
-
February 21, 2017 at 8:55 pm #1380764
I need to customize my woo-commerce pages so that neither the header or the recent post shows up. How can I do that?
February 21, 2017 at 11:04 pm #1380866Hello There,
Thanks for writing in!
You can use disable the sidebar on WooCommerce by selected Fullwidth under WooCommerce > Shop Layout in the Customizer.
Thanks.
February 22, 2017 at 1:47 pm #1381764I already did that and am having the same problem. See attached
February 22, 2017 at 1:48 pm #1381765See Images
February 22, 2017 at 4:24 pm #1381913Hi again,
To assist you with this issue, we’ll need you to provide us with your URL. This is to ensure that we can provide you with a tailored answer to your situation. Once you have provided us with your URL, we will be happy to assist you with everything.
Thanks!
February 22, 2017 at 4:42 pm #1381933February 22, 2017 at 11:33 pm #1382410Hi,
Wecan’t aces your site as it is currently under construction mode.
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 / passwordDon’t forget to select Set as private reply. This ensures your information is only visible to our staff.
February 23, 2017 at 10:31 am #1383076This reply has been marked as private.February 23, 2017 at 7:10 pm #1383707Hi There,
Thank you for the credentials, I did able to change the Shop Layout to fullwidth. Please clear your browser’s cache.
Cheers!
February 23, 2017 at 9:31 pm #1383817I did that but its still the same. You see the problem occurs only at the checkout page. After I add item to the cart and proceed tot check out that’s when the problem happens. If you got to https://peterhonore.com/shop and select the product and go through the checkout process you will see what im talking about.
February 24, 2017 at 2:00 am #1384021Hi there,
Please add this to your child theme’s functions.php
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() ) { $layout = 'full-width'; } 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_cart () ) { $layout = 'full-width'; } return $layout; }
That should force shop, product category, product, and cart page to have full-width layout.
Thanks!
February 24, 2017 at 11:07 am #1384449It worked for the shop page but the same problem is still occurring on the checkout page: https://peterhonore.com/checkout/
February 24, 2017 at 9:09 pm #1385040Hello There,
Thanks for updating in! To include the check out page, please find this block:
if ( is_cart () ) { $layout = 'full-width'; }
Have it updated and make use of this code:
if ( is_cart () || is_checkout() || is_account_page() || is_woocommerce() ) { $layout = 'full-width'; }
Hope this helps. Please let us know how it goes.
February 25, 2017 at 1:34 pm #1385566It worked, Thanks! X-Theme is the best! Appreciate the support.Have a good day
February 25, 2017 at 10:01 pm #1385869Hello There,
You’re welcome! We’re happy to help you out.
If you need anything else we can help you with, don’t hesitate to open another thread.Best Regards.
-
AuthorPosts