Hi,
To add class to the Sold by vendor add below code to your funcion.php theme made your custom change here.
add_action('init', 'wcmp_soldby_text');
function wcmp_soldby_text(){
global $WCMp;
/* for single product */
remove_action('woocommerce_product_meta_start', array($WCMp->vendor_caps, 'wcmp_after_add_to_cart_form'), 25);
/* for single product */
add_action('woocommerce_product_meta_start', 'wcmp_after_add_to_cart_form', 25);
}
function wcmp_after_add_to_cart_form() {
global $post;
if ('Enable' === get_wcmp_vendor_settings('sold_by_catalog', 'general') && apply_filters('wcmp_sold_by_text_after_products_shop_page', true, $post->ID)) {
$vendor = get_wcmp_product_vendors($post->ID);
if ($vendor) {
$sold_by_text = apply_filters('wcmp_sold_by_text', __('Sold By', 'dc-woocommerce-multi-vendor'), $post->ID);
echo '<a class="by-vendor-name-link" style="display: block;" href="' . $vendor->permalink . '">' . $sold_by_text . ' ' . $vendor->page_title . '</a>';// add your class here or change as per yore requirement.
}
}
}
Copy
Regards,