• Resolved vasudevb

    (@vasudevb)


    Hi,

    I wanted to remove the vendor name from the Vendor Info Tab in the single Product page. I removed the lines from the wc-template but still the label Vendor name remains.

    Can someone please help?

    The page I need help with: [log in to see the link]

Viewing 5 replies - 1 through 5 (of 5 total)
  • Hello @vasudevb,

    To hide the vendor info tab you need to use this code in your theme’s functions.php file –

    add_filter( 'woocommerce_product_tabs', 'dokan_remove_seller_info_tab', 11 ); 
    function dokan_remove_seller_info_tab( $tabs ) 
    {  
      unset ($tabs ['seller']); 
      return $tabs;
      }

    Please use the code and let me know if it is working.

    Good Day ??

    Thread Starter vasudevb

    (@vasudevb)

    Hello @roshni07

    I tried the code but the website showed – “there has been a critical error.”

    Also, I do not want to remove the seller tab – just the second line which says Vendor: <name> Now I could remove the name of the vendor, but the label Vendor: remaains.

    Please do have a look. https://indikaari.in/product/almonds-with-shell/ (this is the original version. I can remove the vendor name – how to get rid of the vendor label).

    Thanks for helping

    Hello @vasudevb,

    Kindly add the below CSS code to your WP Dashboard > Appearance > Customize > Additional CSS area to hide
    your Vendor name.

    div#tab-seller li.seller-name{
    display: none;
    }

    After Checking let me know the update ??

    Thank You.

    Thread Starter vasudevb

    (@vasudevb)

    Worked perfectly. Exactly as desired.

    Is it fine to do this by CSS or a code edit would be better? Someone from your team said CSS is not a complete solution. Or CSS is fine for such minor tweaks?

    Thank you

    Hello @vasudevb ,

    CSS use is completely fine in this case.

    But if you want more solid changes. You can use the template override procedure. You need to open the file from dokan-lite/templates/global/product-tab.php and remove the lines between #25 to #33. Save the modified file under your-theme/dokan/global/ folder with the exact same name to remove that Vendor: Seller name part.

    I hope this helps.

    Thank you ??

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Hiding Vendor label on product page(vendor name hidden)’ is closed to new replies.