WordPress.org

Ready to get started?Download WordPress

Forums

WooCommerce - excelling eCommerce
[resolved] Pages, Archives & Categories Appear on my Shop Page (7 posts)

  1. jmarcjones
    Member
    Posted 9 months ago #

    Please can anybody help.. I've recently started (very new to WooCommerce) using the plugin on my newly created wordpress site (currently at http://6gear.co.uk/dc2013site/shop) as I'm in the process of designing a new site to replace http://www.dylancernyw.com.

    My problem is that on the Shop Page (auto added page by woo commerce) I am getting a list of ALL pages on the site, the Archives option and Categories..

    Its only happening on the WOO COMMERCE page and if I create a new page within WordPress its blank and does not show the items mentioned.

    I do not want ANYTHING else to appear on the shop page except for the products

    Can anybody take a look at the first link above and see what I mean and suggest a way around it?

    Thanks

    Jonathan

    http://wordpress.org/extend/plugins/woocommerce/

  2. Roy
    Member
    Posted 9 months ago #

    That is not really an issue of WooCommerce. What you're seeing there is the sidebar and your theme should be able to turn that off for that page.

  3. jmarcjones
    Member
    Posted 9 months ago #

    No side bars are actually switched on and its happening on the 'shop' page of WooCommerce as I mentioned before. If I create for example a wordpress page "test page" and do not enter any content then publish. When I view the page its blank. I was thinking that something on the auto created woo commerce pages is causing this problem?

  4. Roy
    Member
    Posted 9 months ago #

    Well if your theme can't turn it off, that means it is probably not a WC compatible theme which means you would probably need to enter custom code to have it not show.

    There are hooks to have this turn off. Look into this hook.

    'woocommerce_sidebar'

    You can try putting this in your theme functions.php file.

    remove_action( 'woocommerce_sidebar', 'woocommerce_get_sidebar', 10 );
  5. jmarcjones
    Member
    Posted 9 months ago #

    Thanks for your help this has solved my problem as I've added this code to functions php

    /**
    * WooCommerce
    *
    * Unhook sidebar
    */
    remove_action( 'woocommerce_sidebar', 'woocommerce_get_sidebar', 10);

    /**
    * WooCommerce
    *
    * Unhook/Hook the WooCommerce Wrappers
    */
    remove_action('woocommerce_before_main_content', 'responsive_woocommerce_wrapper', 10);
    remove_action('woocommerce_after_main_content', 'responsive_woocommerce_wrapper_end', 10);

    add_action('woocommerce_before_main_content', 'responsive_child_woocommerce_wrapper', 10);
    add_action('woocommerce_after_main_content', 'responsive_child_woocommerce_wrapper_end', 10);

    function responsive_child_woocommerce_wrapper() {
    echo '<div id="content-woocommerce" class="grid col-940">';
    }

    function responsive_child_woocommerce_wrapper_end() {
    echo '</div><!-- end of #content-woocommerce -->';
    }

  6. jmarcjones
    Member
    Posted 9 months ago #

    :)

  7. Roy
    Member
    Posted 9 months ago #

    Yeah read what I put..

Reply

You must log in to post.

About this Plugin

About this Topic