• Resolved veloheld

    (@veloheld)


    Hello,

    unfortunately the badge appears on all pictures inside the product. How can I show it only on the first picture. Even on the footer picture on our logo.

    I use Uncode Theme.

    Regards

    Carsten

    • This topic was modified 2 months ago by veloheld.
Viewing 9 replies - 1 through 9 (of 9 total)
  • Plugin Author ILLID

    (@mihail-barinov)

    Hi,

    Can you show me a picture of how it is looking for you right now?

    Regards

    Thread Starter veloheld

    (@veloheld)

    No, I needed to turn it of, because the badge was on all pictures of the product site. Even on our company logo in the footer.

    Thread Starter veloheld

    (@veloheld)

    Here is a site where you can see it: https://www.veloheld.de/produkt/veloheld-iconx-titan-rahmen-sale/

    I will turn it of again in a few minutes…

    Thread Starter veloheld

    (@veloheld)

    Is there no help from your side?

    Plugin Author ILLID

    (@mihail-barinov)

    Sorry for the long response. Please try to use following code snippet:

    class AWL_Show_Only_Once {

    public $data = array();

    function __construct() {

    add_filter( 'awl_show_label_for_product', array( $this, 'awl_show_label_for_product' ), 10, 3 );

    }

    public function awl_show_label_for_product( $match_condition, $product, $label_id ) {
    if ( isset( $this->data[$label_id] ) && $this->data[$label_id] ) {
    $match_condition = false;
    }
    if ( $match_condition && is_singular('product') ) {
    $this->data[$label_id] = true;
    }
    return $match_condition;
    }

    }

    new AWL_Show_Only_Once();
    Thread Starter veloheld

    (@veloheld)

    It is not working good. The label shows up at some picture on the product side where it should not. For example, when showing the single product page the label also shows up on the company logo in the footer.

    Plugin Author ILLID

    (@mihail-barinov)

    Please tell me – do you use any other additional code snippets or maybe you made some changes in the plugins Hooks option?

    Thread Starter veloheld

    (@veloheld)

    I think not. I use the theme Uncode with WPBakery Page Builder.

    Plugin Author ILLID

    (@mihail-barinov)

    Not sure why this happens but to fix that logo on footer issue you can use following custom css:

    .site-footer .advanced-woo-labels {
    display: none !important;
    }
Viewing 9 replies - 1 through 9 (of 9 total)
  • You must be logged in to reply to this topic.