Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #383609

    Hi,

    Im using the masonry element to display a product category. Everything works fine. However each product displays the word ‘Free!’ under the title because the product is £0.00. This is because i’m using a conditional plugin that manages my product price builder. This has a parameter to disable the word ‘Free!’ but only effects the product page its self.

    I can remove the ‘Free!’ word with display: none; but its for each one. If I’ve got 8 products showing, I need to write custom css 8 times (i think).

    Is there a single CSS code that removes the Free word from the magazine element in one swoop?

    Thanks is advance!

    #383610
    This reply has been marked as private.
    #383710

    Hi, I found functions code which removes the product Free text

    add_filter( ‘woocommerce_variable_free_price_html’, ‘hide_free_price_notice’ );
    add_filter( ‘woocommerce_free_price_html’, ‘hide_free_price_notice’ );
    add_filter( ‘woocommerce_variation_free_price_html’, ‘hide_free_price_notice’ );
    /**
    * Hides the ‘Free!’ price notice
    */
    function hide_free_price_notice( $price ) {
    return ”;
    }

    For the benefit of others – I just added to child theme function.php

    :)

    #383717

    Hey!

    Glad you figured it out!
    For your information, you can take a look at Enfold documentation here – http://kriesi.at/documentation/enfold/
    And if there are features that you wish Enfold had, you can request them and vote the requested ones here – https://kriesi.at/support/enfold-feature-requests/
    For any other questions or issues, feel free to post them here on the forum and we will gladly try to help you :)

    Regards,
    Yigit

Viewing 4 posts - 1 through 4 (of 4 total)
  • The topic ‘Using masonry element – product category’ is closed to new replies.