This topic has 5 replies, 2 voices, and was last updated 9 years by Catalin.

  • Author
  • #20630
     tolase508
    Participant

    I would like to keep the matching system on the theme, but i want to remove all the hearts from the site how do i do that? Ive seen the script for removing the hearts in the forum but it also includes removing the compatibility and i dont want to do that.

    #20681
     Catalin
    Moderator

    Hello,

    Add this code in functions.php from your child theme folder:

    COPY CODE
    
    
    function kleo_my_hearts_actions() 
    {
        /* 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';
    }
    
    

    Thank you,
    Catalin

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution
    #20807
     tolase508
    Participant

    Hi Caitlin thank you so much for you quick response, the only thing im confused about is where in the .php file i should add the code

    this is the existing code in the fuctions .php file, pleAse point out EXACTLY where i should add this code, (before the first line? after the last line? in between the last two lines? i need EXACTLY WHERE. last time i tried i was unsuccesful, and i believe its because i didnt put it in the right location. THANK YOU

    <?php
    /**
    * @package WordPress
    * @subpackage Sweetdate
    * @author SeventhQueen <themesupport@seventhqueen.com>
    * @since Sweetdate 1.0
    */

    /**
    * Sweetdate Child Theme Functions
    * Add extra code or replace existing functions
    */

    ?>

    #20841
     Catalin
    Moderator

    add all the code before ” ?> ” .

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution
    #20900
     tolase508
    Participant

    Hi caitlin i did as you said but nothing happend? all the hearts are still there?
    */
    i placed code here in between these two tags but nothing happened

    ?>

    #21435
     Catalin
    Moderator

    Hello,

    Please send me FTP credentials and WordPress admin aces to fix your issue. Reply “as private” for security reasons.

    Thank you,
    Catalin

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution
Viewing 6 posts - 1 through 6 (of 6 total)

You must be logged in to reply to this topic.

Log in with your credentials

Forgot your details?