Hi there,
unfortunately it is not possible to do it differently. I’m sorry
Hi there,
I managed to solve the problem by using shortcodes.
Hi @mad2kx,
What shortcode did you use please?
Thanks,
Steve
Hi @insightdes,
I was using this code in my functions.php
if( ! function_exists( 'yith_show_vendor_name' ) ){
function yith_show_vendor_name() {
global $product;
$vendor = yith_get_vendor( $product, 'product' );
ob_start();
if ( $vendor->is_valid() ) {
?>
<ul class="shortcodes vendors-list">
<li class="vendor-item">
<h3><?php echo $vendor->name ?></h3>
<div class="vendor-info-wrapper">
<ul class="vendor-info">
<li class="location"><i class="fas fa-location-arrow"></i><?php echo $vendor->location ?></li>
<li class="store-email"><i class="fas fa-envelope"></i><?php echo $vendor->store_email ?></li>
<li class="telephone"><i class="fas fa-phone"></i><?php echo $vendor->telephone ?></li>
</ul>
</div>
</li>
</ul>
<?php
}
return ob_get_clean();
}
}
if( ! function_exists( 'yith_wcmv_add_sc' ) ){
function yith_wcmv_add_sc(){
add_shortcode( 'yith_wcmv_vendor_name', 'yith_show_vendor_name' );
}
}
And this part into the Divi Code Module [yith_wcmv_vendor_name]
Hope this helps.
-
This reply was modified 6 years, 5 months ago by
WeDev.Africa.
That’s great, thanks mad2kx.
@mad2kx
Thanks for your suggestions!
Have a nice day
YITH