Home Forums WC Vendors Free Support How do I override template_loop_sold_by function in my theme functions

NOTICE: We've Moved to a Ticket System for Support

As of August 31, 2017 (12am EST) our support forums will be retired (read-only), and we will be moving to a support ticket system.  This will allow us to better organize and answer support requests, and provide a more personalized experience as we assist our customers.

For the time being, we will leave our forums open for reading and learning while we work on creating a more robust Knowledge Base for everyone to use.

If you are a WC Vendors Pro customer please open a support ticket here. 

If you are a WC Vendors user please open a support ticket on the Wordpress.org forums.

The information on this forum is outdated and in most instances no longer relevant. Please be sure to check our documentation for the most up to date information.

https://docs.wcvendors.com/

Thank you to all of our customers!

 

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #7895
    dll416
    Participant

    Hi Ben or Jamie,

    I need to remove the href and small html tag from the Sold by: Vendor in the loop. I still want it to say the name and all, just no link. I found the function that controls it and temporarily changed it in the class-vendor-shop.php file but I would like a better way so that I don’t have to worry about updates. When I copy it over into my themes functions the site breaks. Do you have any suggestions on how I can override/change it?

    Thanks,
    Deb

    #7897
    Jamie
    Keymaster

    Hi Deb,

    At the moment the best way to achieve what you want is to unhook our function completely and write your own that can display whatever you want.

    Here is an example that shows the Sold By without the styling. You can modify this as you wish.

    https://gist.github.com/digitalchild/fe9170d90f5880651b84

    cheers,

    Jamie.

    #8779
    dll416
    Participant

    THank you! Works great!

Viewing 3 posts - 1 through 3 (of 3 total)
  • The forum ‘WC Vendors Free Support’ is closed to new topics and replies.