Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author YITHEMES

    (@yithemes)

    Hi,

    This issue is caused becouse your theme don’t use standard WooCommerce hooks.
    However you can try to fix this issue in your theme following these steps:

    FILE: flatsome/woocommerce/single-product/product-image.php
    – edit line 136
    <img itemprop="image" src="<?php echo $src_small[0]; ?>" alt="<?php echo $src_title; ?>" title="<?php echo $src_title; ?>" />
    with this code:

    <?php ob_start(); ?>
    <img itemprop="image" src="<?php echo $src_small[0]; ?>" alt="<?php echo $src_title; ?>" title="<?php echo $src_title; ?>" />
    <?php echo apply_filters('woocommerce_single_product_image_html', ob_get_clean(), $product->id ); ?>

    – edit line 141
    <?php } else { echo '<div class="slide easyzoom"><img src="'.wc_placeholder_img_src().'" title="'.get_the_title().'" alt="'.get_the_title().'"/></div>';} ?>
    with this code:

    <?php } else {
       echo '<div class="slide easyzoom">';
       $image_html = '<img src="'.wc_placeholder_img_src().'" title="'.get_the_title().'" alt="'.get_the_title().'"/>';
       echo apply_filters('woocommerce_single_product_image_html', $image_html, $product->id );
       echo '</div>';
         } ?>

    – open Custom CSS in Theme Options of your theme and add this code:

    .iosSlider.product-thumbnails .yith-wcmbs-badge{
        display: none;
    }

    with this fix, all should work fine!

    Best Regards,
    Yithemes

    Thread Starter natojr8

    (@natojr8)

    Ok, thank you!
    The badge now shows up on the big image in product page. But still shows in the first thumbnail. And this looks s little strange.
    Is it possible to fix?

    This things happen with the pro version too?

    Thanks for your attention
    Best regards!

    Plugin Author YITHEMES

    (@yithemes)

    Hi,
    could you give us a link of one product page that have this issue?
    Thanks.

    Best Regards,
    Yithemes

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Problems in product page of flatsome theme’ is closed to new replies.