Support » Plugin: WC Featured Products » Can the “Featured” label be switched off?

  • Resolved wolfatadfilm

    (@wolfatadfilm)


    This is a very useful plugin, and it does exactly what it is supposed to do. But I can’t find a settings page. I would like to switch off the “Featured” labels that now appear on the product displays in the grid. Is this possible?
    Thank you in advance

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author Khokan Sardar

    (@itzmekhokan)

    @wolfatadfilm add the follows code snippet in your active theme’s functions.php to switch off “Featured” label –

    add_filter( 'woocommerce_sale_flash', 'modify_woocommerce_sale_flash', 999, 3 );
    function modify_woocommerce_sale_flash( $html, $post, $product ) {
    	if ( $product->is_featured() ) {
            return false;
        } else {
            return $html;
        }
    }
    Plugin Author Khokan Sardar

    (@itzmekhokan)

    @wolfatadfilm I presume that it solved your issue.

    Thread Starter wolfatadfilm

    (@wolfatadfilm)

    Many thanks, Khokan, I had solved it earlier on through specific css, but forgot to come back here. Sorry.

    Any other suggestions?. I tried the code but did not work.
    Thanks

    Plugin Author Khokan Sardar

    (@itzmekhokan)

    @mepump there was conflict with sale flash, so we need to change the hook to render featured products tags. So we updated the codes in latest version, that’s why above patch do not works.

    Anyway in this version we added filter to do customization with featured tags. So as per your requirement just add follows code in your active theme’s functions.php
    add_filter( 'wcfp_featured_label_tags_html', '__return_false' );

    Great. thank you

    1. i set this code
    add_filter( ‘wcfp_featured_label_tags_html’, ‘__return_false’ );
    but it’s not working well.

    u can see the “orange graphic” of feature at the top right side of the ebook.
    https://ezynichestore.com/

    please advise how to remove the “orange graphic” ?

    2. i also noticed that the feature works for the shop page but not the category pages. what code can i add in so that it works in category pages as well?

    many thanks

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Can the “Featured” label be switched off?’ is closed to new replies.