How to hide shopping widget from vendor page?

Theme and Plugin Support

How to hide shopping widget from vendor page? Resolved

Viewing 5 reply threads
  • Author
    • #88115


      I try to open my vendor page and not showing in full page, because my shopping widget appears in left side page. Now I wanna know about how to hiding shopping widget from my vendor page? So I can see my vendor page in full page.


    • #88127

      Hi @yamahawzrm1, thanks for getting in touch with us.

      Generally, the sidebar gets added by WooCommerce or the theme. Now, if this is a WooCommerce Sidebar, then by adding this code to the function.php of the current theme you can remove the sidebar :

      function woocommerce_remove_sidebar_shop() {
         if( is_tax('dc_vendor_shop') )
            remove_action( 'woocommerce_sidebar','woocommerce_get_sidebar',10 );
      add_action( 'template_redirect', 'woocommerce_remove_sidebar_shop' );

      Now,if the theme is using their own sidebar, then please ask the theme author on how can you remove that side for a specific taxonomy page such as

    • #88139


      I’ve been applied this code to my function.php

      function woocommerce_remove_sidebar_shop() {

         if( is_tax(‘dc_vendor_shop’) )
            remove_action( ‘woocommerce_sidebar’,’woocommerce_get_sidebar’,10 );
      add_action( ‘template_redirect’, ‘woocommerce_remove_sidebar_shop’ );

      It’s not work well. My site suddenly error and can’t open normally. I remove this code from my cpanel. Now my site going normal again, but my problem with Shopping Sidebar still not solved. I try to open taxonomy.php from wp-includes, but I can’t found dc_vendor_shop. I can’t contact my theme author.

      Please help me

    • #88143

      Hi @yamahawzrm1, can you please share a temporary admin and ftp access so we can help you out accordingly.

      While sharing the access, don’t forget to mark the response as private.

    • #88174

      Hi @Moumita

      I try to searching same issue with I have in this forum yesterday. I founded some code to hiding shopping widget. Actually the code I found is similar with you giving to me. But any little changing or modification, so I applied to function.php. The good thing is code working well in my site. Now my vendor page showing full page without any widget in there. So, it has been solved now.

      Thanks for your help Mrs Moumita 🙂

    • #88180

      You are welcome @yamahawzrm1

      I hope you are satisfied with our assistance and plugin. A 5/5 review here- , would be a great way to share your experience with others.

      This motivates us to continue providing the best experience possible and also helps others know how WC-Marketplace can make their life easier.

Viewing 5 reply threads

The topic ‘How to hide shopping widget from vendor page?’ is closed to new replies.

Buy any WCMp product at 20% discount, use code "FREEDOM20" or, buy bundle at a slashed price

Buy at Slashed Price