Is it possible to add vendor logo to listing block view? I have added a space for it on Listings β StoryCinn but the vendor variable isnt available when I edit the template. I assume this has to be done at a functions level but I keep. hitting a wall - any help would be great.
If you added a custom template part to the hivepress/v1/templates/listing_view_block
template then it should have the $listing
object available in HTML code, then you can also get the vendor object there via $listing->get_vendor()
. Then, itβs possible to get the image URL:
$vendor->get_image__url('thumbnail');
Hope this helps
1 Like
Thanks for much for this simple straightforward solution - icons now loading as well as main image. Looks miles better thanks for your help!
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.