This topic has 0 replies, 1 voice, and was last updated 10 years by SQadmin.

  • Author
  • #1374
     SQadmin
    Keymaster

    This replaces:
    – the love heart that appears over some images
    – register modal button
    – removes the matching system on user profile page
    – heart in about us widget

    Please add the following code to your sweetdate-child/functions.php file:

    COPY CODE
    
    
    add_action('after_setup_theme','kleo_my_hearts_actions');
    
    function kleo_my_hearts_actions() 
    {
       /* disable matching on member profile */
        remove_action('kleo_bp_before_profile_name', 'kleo_bp_compatibility_match');      
    
        /* Replace the heart over images */
        add_filter('kleo_img_rounded_icon', 'my_custom_icon');
    
        /* Replace the heart from register modal */
        add_filter('kleo_register_button_icon', 'my_custom_icon_register');
    
        /* Replace the heart from About us widget */
        add_filter('kleo_widget_aboutus_icon', 'my_custom_icon_about_widget');
    }
    
    /* Replace the heart with a camera icon function */
    function my_custom_icon () {
        return 'camera';
    }
    
    /* Replace the heart from register modal with a user icon function */
    function my_custom_icon_register () {
        return 'user';
    }
    /* Replace the heart from about us widget with a user icon function */
    function my_custom_icon_about_widget () {
        return 'user';
    }
    

    To view all possible icons available:
    http://fortawesome.github.io/Font-Awesome/icons/

    Make sure to have the child theme activated

Viewing 1 post (of 1 total)

The topic ‘Remove/replace the love hearts in site’ is closed to new replies.

Log in with your credentials

Forgot your details?