Display vendor logo instead of “Sold By” text
-
Hi there,
On the product archive page I want to show the logo of the vendor at every product.
I am using the following snippet, which is working perfect:// LOGO BEFORE SOLD BY TEXT add_filter('wcmp_sold_by_text', 'show_image_callback', 10, 2); function show_image_callback($text, $post_id) { $vendor = get_wcmp_product_vendors($post_id); $img_id = $vendor->image; $image = '<img src="'.wp_get_attachment_url( $img_id ).'" style="height:100%!important;"/>'; $new_text = $text . " " . $image; return $new_text; }
However, this is displaying both the logo and the “Sold by: Vendor” text.
I would like to disable the “Sold by: Vendor” text and only show the logo.
How do I do this?
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
- The topic ‘Display vendor logo instead of “Sold By” text’ is closed to new replies.