Viewing 11 replies - 1 through 11 (of 11 total)
  • Hi @ranand143, thanks for reaching WCMp Support!!

    Rahul, do you want to remove the Sidebar from all the pages or only from the vendor’s shop page.

    Waiting for your reply.

    Subrata Mal

    (@dualcube_subrata)

    @ranand143,

    For vendor’s shop page.

    Override archive-product.php file in your current theme folder and remove sidebar if the page is vendor shop page. You can check if it is a vendor shop page using is_tax('dc_vendor_shop') function.

    For reference how to override WooCommerce template file in theme folder please follow the link Template structure & Overriding templates via a theme.

    Thanks & regards,
    Subrata Mal

    Thread Starter Rahul Anand

    (@ranand143)

    I am using Sydney theme. I made it woo-commerce compatible. This theme don’t have archive-product.php file.

    After made it woo-commerce compatible, it have woocommerce.php. I removed get_sidebar() from woocommerce.php. But still no solution…

    @ranand143 In order to make any theme compatible with, you must have created a folder called “WooCommerce” inside the theme file.

    Then, please copy the archive-product.php file from WooCommerce plugin’s folder and paste that into the WooCommerce theme file folder.

    Now, just follow the instruction we have provided in our previous thread.

    Thread Starter Rahul Anand

    (@ranand143)

    @wc Marketplace, Thanks for quick reply.

    I used this reference for make Sydney theme woo-commerce compatible which not telling us to create “WooCommerce” inside the theme file https://docs.woocommerce.com/document/third-party-custom-theme-compatibility

    Any suggestion…!!!

    Please use this code snippet to remove the sidebar from the vendor’s shop page :

    
    function remove_sidebar_in_wcmp_vendor_shop()
    { 
       if( is_tax( 'dc_vendor_shop' ) )
       {
        remove_action('woocommerce_sidebar', 'woocommerce_get_sidebar', 10);
       }
    }
    add_action( 'template_redirect', 'remove_sidebar_in_wcmp_vendor_shop', 999 );
    Thread Starter Rahul Anand

    (@ranand143)

    @wc Marketplace, Thanks a lot, its working now…

    But still one issue… Sidebar is not coming now but page is not coming in full width. Can you tell me where or which file to edit to make page width 100%…

    • This reply was modified 6 years, 11 months ago by Rahul Anand.

    Rahul, as you have removed the sidebar, the content of the page will now take the space that is available.

    You may apply some custom CSS to align your page content via adjusting the container’s width.

    Please let us know if you have any further query.

    Thread Starter Rahul Anand

    (@ranand143)

    @wc Marketplace, First of all a big thanks for your quick & prompt support. My problem 100% solved…

    Thanks a lot again…

    Thread Starter Rahul Anand

    (@ranand143)

    @subrata Mal, thanks a lot u also bro… ??

    You are welcome @ranand143 ??

    Also, I hope you are satisfied with us and you love plugin. A 5/5 classification here – https://www.ads-software.com/support/plugin/dc-woocommerce-multi-vendor/reviews/#new-post, would definitely be great a way to share your experience with other users.

    This would motivate our team to more and more help and support you guys to run your business without much technical hassle.

    Hopefully, you are with us ??

Viewing 11 replies - 1 through 11 (of 11 total)
  • The topic ‘Remove Sidebar from Vendor Shop Page’ is closed to new replies.