How To Show Vendor Name On The Product Thumbnail In Dokan Multivendor Plugin by weDevs

Published by WP Doctor on

Every marketplace owner always looks for making their website more user-friendly. They want to save their customer’s time.

I am getting the below question from many users to add vendor name with Store URL on the product thumbnail:


I want to display the vendor’s name alongside the Product name and price on the shop page (the thumbnails of products). Can you help?

How to add vendor name on the product thumbnail?

If you are using Dokan plugin and if You can easily add the vendor name with the Store URL on the product thumbnail by adding some custom codes in your child theme. On the thumbnail, it can be shown like below-

Now, if you click on the vendor name then it will redirect you to the vendor store page. If you are looking for the same thing then add the below code in your child theme’s functions.php file –

I believe the above code snippet will help you and if you need to modify anything then you can change it as per your requirement.

Important Note

If you need to show store name instead of vendor name then you have to use below codes


nellashub · July 28, 2018 at 7:07 pm

Thanks code works.
But does not display on mobile devices
Is there a way to make the SOLD BY tag show on mobile phone screens and other small screens?

    Nayem · July 29, 2018 at 4:49 am

    Hello Nellashub,

    You may need to adjust some CSS to show it correctly on the mobile version. I have showed the correct way to do so rest need to be done from your side 🙂

Ali · November 14, 2018 at 1:59 pm

Hello Nayem,

Can I have your personal email address or contact details so I can contact you discuss something regarding Dokan plugin? There are many thing which needs to be discuss with you. I’ll be glad if your share your contact detail here or by email me at


    Nayem · November 16, 2018 at 5:05 am

    You can use the contact form of this website 🙂

Mohan Koirala · December 8, 2018 at 12:03 pm

Hello is it possible to add messenger link of each vendor by doing like that. i want to add messenger link as an instant support from vednor on each producd display or price display area. Thank you.

    Nayem · December 9, 2018 at 11:37 am

    Hello, It is possible but you have to modify in different way 🙂

VebPro · April 8, 2019 at 4:41 am

How display the Total Sales of vendor?

    WP Doctor · April 8, 2019 at 11:59 am


    Sorry, this post was about showing vendor name not total sales. You may need to do some different types of code to show total sales 🙂

Marcio · May 10, 2019 at 10:50 pm

Hello, this is not working for me. Running latest versions of both Dokan and WOO.
The first code works, it shows the username.
But when I remove that line and added the one to show the store name, it breaks the page

    WP Doctor · May 16, 2019 at 8:25 pm

    It’s working fine here. Kindly check what kind of error you are getting 🙂

      Heni Azzouz · May 18, 2019 at 10:51 am

      I have the same issue as Marcio.
      I even tried to change the $vendor with &author (because I did not see any $vendor variable in the code) but it did not solve the issue.

        WP Doctor · May 18, 2019 at 8:32 pm


        Can you try the below line? –

        %s', esc_html__( 'Vendor', 'dokan-lite' ), esc_url( $vendor->get_shop_url() ), esc_html__( $vendor->get_shop_name() ) );

        WP Doctor · May 18, 2019 at 8:37 pm

        We have updated the code on this post. Kindly check the new update. If it does not work let us know.

Heni Azzouz · May 16, 2019 at 6:35 pm

does this work on any theme or this is only for the dokan theme ?

    WP Doctor · May 16, 2019 at 8:24 pm

    It works with most of the WC compatible theme.

      Heni Azzouz · May 18, 2019 at 10:49 am

      showing the vendor name is working correctly but the code for showing the store name is not working.

        christopher deryckere · July 13, 2019 at 9:19 pm

        same it shows this: syntax error, unexpect ‘,’

          WP Doctor · July 16, 2019 at 11:47 am


          Please make sure that you did not miss any syntax while you are copying the code.

edm308 · August 14, 2019 at 12:52 pm

I used it and broke my site, so I added to a php tester and still not working

    WP Doctor · August 14, 2019 at 1:01 pm


    We have updated the post. Everything is working fine for us. Make sure that you have placed the code correctly.

christopher deryckere · August 24, 2019 at 2:59 pm

this works great thank you but i am looking to add the geolocation in the thumbnail too so customers can see in which city/town the products are more easily, in geolocation i have specified sellers to only add their town and not full address so i would like this information to be under the seller / store name on thumnbnail and product catalog without having to always click on a product to see location.

    WP Doctor · August 24, 2019 at 6:56 pm

    You have to modify the current code but address printing on the thumbnail is not a good idea because it will break your layout.

      Christopher Deryckere · September 10, 2019 at 7:32 pm

      ok maybe not in thumbnail but in the shop product listing, not on home page but inthe actual shop and categories, and also the star rating of sellers

Ck · September 26, 2019 at 12:41 am

Is it possible to have vendor Store name in place of category/tags ( in place of Music, Accessories..)

    WP Doctor · September 26, 2019 at 8:43 am


    It is possible but you have to write a different code 🙂

budiain · March 10, 2020 at 6:36 am

Perfect. I use it without modification. Thank you very much friendly man.

    WP Doctor · March 10, 2020 at 9:11 am

    Thanks, we hope you will share our posts 🙂

fariborz · March 12, 2020 at 3:31 pm

Hello good time
I want to show a small store profile picture next to the store name at the store address. Is this possible?

Marinemarine · June 8, 2020 at 8:15 pm

thanks a lot, it’s working fine !
But why the store name is written above product picture ?
I am using OceanWP theme.

Many thanks

Constanza · July 10, 2020 at 11:07 pm

It’s work fine on the shop page, but on the homepage I used elementor to pull the products and doesn’t show the vendor name.

Yahaya Mohd · July 30, 2020 at 4:18 pm

Hi, I am looking for a way to show vendor phone number on each product page preferably inside a click to reveal button exactly as it is on

This is very useful especially when the woocommerce store is in catalog mode, so that buyers can contact the vendor before buying. We hope to use yith woocommerce catalog mode plugin.

My question is what hook or shortcode can be used to call for vendor phone number within a product page using Dokan Multivendor Woocommerce Plugin?. Thank you.

WP Doctor · December 20, 2020 at 4:40 pm

Video Tutorial:

Leave a Reply

%d bloggers like this: