This topic has 1 reply, 2 voices, and was last updated 10 years by Abe.

  • Author
  • #33971
     Nat
    Participant

    I have used your code to replace all the hearts, yet once I log out, the hearts show again. I have cleared my cache, etc. Please help- already live.

    Below is the code in my child functions

    `<?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
    */

    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’;
    }
    ?>

    #35235
     Abe
    Keymaster

    Hi, it is related to cache since there is no logic to show by user login status

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

    ---
    @ SeventhQueen we do our best to have super happy customers. Thanks for being our customer.

Viewing 2 posts - 1 through 2 (of 2 total)

The forum ‘Sweetdate – WordPress’ is closed to new topics and replies.

Log in with your credentials

Forgot your details?