remove sidebar in woocommerce single product page

Home Forums SKT Full Width Forum remove sidebar in woocommerce single product page

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #70302
    JimJim
    Member
    • Topics: 2
    • Replies: 1
    • Total: 3
    Member since: January 12, 2017

    I am not sure if my theme is creating this but for some reason I can’t remove the sidebar in my woocommerce single product page. I am using Strong Pro theme and I have the single post layout set at full width. I have also removed all widgets from the admin. All of my woocommerce product pages show a right sidebar with what looks like a default widget displaying Pages menu. Can anybody help me?

    #70412
    Sonl SinhaSonl Sinha
    Moderator
    • Topics: 0
    • Replies: 31029
    • Total: 31029
    Member since: August 16, 2013

    Hi Jim,

    Kindly go to woocommerce.php and remove the sidebar from there.

    Regards,
    Dave

    #70413
    JimJim
    Member
    • Topics: 2
    • Replies: 1
    • Total: 3
    Member since: January 12, 2017

    Thanks Dave. I was able to remove the sidebar content. Now how do I make the content full width?

    #70414
    Sonl SinhaSonl Sinha
    Moderator
    • Topics: 0
    • Replies: 31029
    • Total: 31029
    Member since: August 16, 2013

    Hi Jim,

    Replace this code in woocommerce.php

    <?php 
    /**
     * The Default Woocommerce Template for Strong
     *
     * Displays the Woocommerce pages.
     *
     * @package SKT Strong
     * 
     * @since SKT Strong 1.0
     */
    global $complete;?>
    <?php get_header(); ?>
        <div class="page_wrap layer_wrapper">
          <?php if(!is_singular()) { ?>
            <!--CUSTOM PAGE HEADER STARTS-->
                <?php get_template_part('sktframe/core','pageheader'); ?>
            <!--CUSTOM PAGE HEADER ENDS-->
            <?php } ?>
            <div id="content">
                <div class="center">
                    <div class="layerbread"><?php woocommerce_breadcrumb(); ?></div>
                    <?php woocommerce_content(); ?>
          </div>
        </div>
        </div><!--layer_wrapper class END-->
    <?php get_footer(); ?>

    Regards,
    Dave

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.