This topic has 15 replies, 10 voices, and was last updated 8 years by levimcfarland.
-
Author
Tagged: error call_user_func_array(), matching
-
December 2, 2013 at 20:38 #7575rota299Participant
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?
December 2, 2013 at 20:47 #7577wiggerl3000ParticipantThen why did you choose this WordPress Theme with the “Built in Profile matching System”???
Better you build your own Site with Buddypress stand alone!!!December 2, 2013 at 21:02 #7578adamParticipant@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'); }
December 2, 2013 at 21:04 #7579adamParticipantthis will get rid of the hearts:
https://archived.seventhqueen.com/forums/topic/removereplace-the-love-hearts-in-siteDecember 3, 2013 at 10:54 #7626SQadminKeymasterThanks @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 solutionJanuary 22, 2014 at 20:17 #10063ACTasarimParticipantMaybe 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?
January 23, 2014 at 00:08 #10076ImSmeeegleParticipantCan I apply the matching system to jobs uploaded into the system?
January 27, 2014 at 11:50 #10261SQadminKeymasterHi, To remove the hearts instead of replacing them with other icon:
COPY CODEfunction 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
CheersHi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionJuly 19, 2014 at 04:29 #229894bservicesParticipantWhat if you want to keep the matching system but replace with a different icon instead of the hearts?
July 21, 2014 at 19:21 #23111AbeKeymasterThat 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.December 16, 2014 at 12:28 #39277airsidworldParticipantHello,
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 ?
December 16, 2014 at 12:31 #39278airsidworldParticipantHello,
I’ve removed the matching system by adding this to function.php
COPY CODEadd_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 ?
December 16, 2014 at 22:24 #39354airsidworldParticipantSorry I just test with Adam code above and it’s working.
ThanksJanuary 31, 2016 at 01:11 #101396levimcfarlandParticipantDoes 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 162January 31, 2016 at 15:21 #101416AbeKeymasterThis 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 CODEadd_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.February 3, 2016 at 02:43 #101807levimcfarlandParticipantThank 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!
-
AuthorPosts
The forum ‘Sweetdate – WordPress’ is closed to new topics and replies.