Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #1380764

    BrandLikeIt
    Participant

    I need to customize my woo-commerce pages so that neither the header or the recent post shows up. How can I do that?

    #1380866

    Prasant Rai
    Moderator

    Hello There,

    Thanks for writing in!

    You can use disable the sidebar on WooCommerce by selected Fullwidth under WooCommerce > Shop Layout in the Customizer.

    Thanks.

    #1381764

    BrandLikeIt
    Participant

    I already did that and am having the same problem. See attached

    #1381765

    BrandLikeIt
    Participant

    See Images

    #1381913

    Nabeel A
    Moderator

    Hi 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!

    #1381933

    BrandLikeIt
    Participant
    #1382410

    Paul R
    Moderator

    Hi,

    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 / password

    Don’t forget to select Set as private reply. This ensures your information is only visible to our staff.

    #1383076

    BrandLikeIt
    Participant
    This reply has been marked as private.
    #1383707

    Friech
    Moderator

    Hi There,

    Thank you for the credentials, I did able to change the Shop Layout to fullwidth. Please clear your browser’s cache.

    Cheers!

    #1383817

    BrandLikeIt
    Participant

    I 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.

    #1384021

    Rad
    Moderator

    Hi 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!

    #1384449

    BrandLikeIt
    Participant

    It worked for the shop page but the same problem is still occurring on the checkout page: https://peterhonore.com/checkout/

    #1385040

    Rue Nel
    Moderator

    Hello 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.

    #1385566

    BrandLikeIt
    Participant

    It worked, Thanks! X-Theme is the best! Appreciate the support.Have a good day

    #1385869

    Rue Nel
    Moderator

    Hello 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.