This topic has 15 replies, 10 voices, and was last updated 8 years by levimcfarland.

  • Author
  • #7575
     rota299
    Participant

    I need to remove that Match system…this hearts and etc…my site is not about dating,

    https://drive.google.com/a/mucheroni.com.br/file/d/0Bzqs439iIKtxaFlvRWxIS0NENGs/edit?usp=sharing

    can you help team?

    #7577
     wiggerl3000
    Participant

    Then why did you choose this WordPress Theme with the “Built in Profile matching System”???
    Better you build your own Site with Buddypress stand alone!!!

    #7578
     adam
    Participant

    @wiggerl3000 lots of people (myself included) use this theme for sites unrelated to dating so it’s necessary to remove the matching feature.


    @rota299
    put this in your functions.php file:

    COPY CODE
    
    /* Remove compatibility from profile */
    add_action('after_setup_theme','kleo_remove_compat');
    function kleo_remove_compat() 
    {
        remove_action('kleo_bp_before_profile_name', 'kleo_bp_compatibility_match');
    }
    
    #7579
     adam
    Participant
    #7626
     SQadmin
    Keymaster

    Thanks @adam, that should do it.

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

    Maybe it’s a stupid question but I couldn’t get it. The link above explains how to replace hearts in site. What if I want to completely remove the hearts?

    #10076
     ImSmeeegle
    Participant

    Can I apply the matching system to jobs uploaded into the system?

    #10261
     SQadmin
    Keymaster

    Hi, To remove the hearts instead of replacing them with other icon:

    COPY CODE
    
     
    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 '';
    }
     
    /* Replace the heart from register modal with a user icon function */
    function my_custom_icon_register () {
        return '';
    }
    /* Replace the heart from about us widget with a user icon function */
    function my_custom_icon_about_widget () {
        return '';
    }
    

    Hi, That matching works only with user profile fields
    Cheers

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

    What if you want to keep the matching system but replace with a different icon instead of the hearts?

    #23111
     Abe
    Keymaster

    That is changed by CSS

    COPY CODE
    
    .circular-item .hearts {
        background: url("http://path_to_new_image.png");
    }
    
    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.

    #39277
     airsidworld
    Participant

    Hello,

    I’ve removed the matching system by adding this to function.php

    add_action(‘after_setup_theme’,’kleo_remove_matching’);
    function kleo_remove_matching()
    {
    remove_action(‘kleo_bp_before_profile_name’, ‘kleo_bp_compatibility_match’);
    }
    add_action(‘after_setup_theme’,’kleo_my_match’);

    but I have the following error appearing:
    Warning: call_user_func_array() expects parameter 1 to be a valid callback, function ‘kleo_my_match’ not found or invalid function name in /home2/airsidwo/public_html/wp-includes/plugin.php on line 505

    Could you please advise ?

    #39278
     airsidworld
    Participant

    Hello,

    I’ve removed the matching system by adding this to function.php

    COPY CODE
    add_action('after_setup_theme','kleo_remove_matching');
    function kleo_remove_matching() 
    {
        remove_action('kleo_bp_before_profile_name', 'kleo_bp_compatibility_match');
    }
    add_action('after_setup_theme','kleo_my_match');

    but I have the following error appearing:
    Warning: call_user_func_array() expects parameter 1 to be a valid callback, function ‘kleo_my_match’ not found or invalid function name in /home2/airsidwo/public_html/wp-includes/plugin.php on line 505

    Could you please advise ?

    #39354
     airsidworld
    Participant

    Sorry I just test with Adam code above and it’s working.
    Thanks

    #101396
     levimcfarland
    Participant

    Does Adam’s code still work as a way to remove the Matching feature? When uploading the code to the functions.php file the site goes down with the following error:
    Fatal error: Call to undefined function add_action() in /home/fourthwaytrade/public_html/wp-includes/functions.php on line 162

    #101416
     Abe
    Keymaster

    This should be the code to remove it but your error is something not related to the theme since the add_action function is coming from wordpress. Try updating your wordpress version

    COPY CODE
    
    
    add_action('after_setup_theme','kleo_remove_matching');
    function kleo_remove_matching() 
    {
        remove_action('kleo_bp_before_profile_name', 'kleo_bp_compatibility_match');
    }
    
    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.

    #101807
     levimcfarland
    Participant

    Thank you for confirming the code was still good Abe. Kept playing around after updating the version and it turned out that I had just put it into the wrong functions file. Everything is working A’OK. Thanks!

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

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

Log in with your credentials

Forgot your details?