Hi,
In order to make all favorite button consistent in style I need to change the heart icon. More specifically:
– from <i class=”fas fa-heart”></i>
– to <i class=”far fa-heart”></i>
This changes the filled heart to an outline heart.. I was looking in your code in the file ‘includes/post-functions.php’ and came across the code snippet that creates the favorite heart button. A comment there states:
/**
* Filter to modify “fas fa-heart” icon
*
* You can use this filter to change “fas fa-heart” icon to something else.
*
* @since 1.0.0
* @package GeoDirectory
*/
$favourite_icon = apply_filters( ‘geodir_favourite_icon’, ‘fas fa-heart’ );
/**
* Filter to modify “fas fa-heart” icon for “remove from favorites” link
*
* You can use this filter to change “fas fa-heart” icon to something else.
*
* @since 1.0.0
* @package GeoDirectory
*/
$unfavourite_icon = apply_filters( ‘geodir_unfavourite_icon’, ‘fas fa-heart’ );
How can I apply these filters in my functions.php?