Forum Replies Created
-
Author
-
adamParticipant
thank you – i changed this to
COPY CODEjq('html, body').animate({ scrollTop: 0;
and that seemed to do the trick.
adamParticipantyou can also try:
COPY CODE<h2><?php bp_member_profile_data( 'field=Name' )?> <?php bp_member_profile_data( 'field=Surname' ); ?></h2>
For the name as you want it displayed.
adamParticipanthi – strangely the code above no longer works for me:
COPY CODE#friends-my-friends:before {content: "";}
i think this may be an issue resulting from the latest theme update?
adamParticipantthis thread will help you:
https://archived.seventhqueen.com/forums/topic/disable-profile-tab-below-profile-imagethis is my full code in my child theme’s functions.php file, which might help you too:
COPY CODEfunction my_remove_profile_nav() { global $bp; if (!bp_is_my_profile()) { bp_core_remove_nav_item( 'profile' ); bp_core_remove_nav_item( 'groups' ); bp_core_remove_nav_item( 'friends' ); bp_core_remove_nav_item( 'forums' ); bp_core_remove_nav_item( 'events' ); bp_core_remove_nav_item( 'location' ); bp_core_remove_nav_item( 'settings' ); bp_core_remove_nav_item( 'bp_album_setup_nav' ); } } add_action( 'bp_setup_nav', 'my_remove_profile_nav' ); function my_setup_nav() { global $bp; $bp->bp_nav['activity'] = false; $bp->bp_nav['profile']['name'] = 'Edit Profile'; } add_action( 'bp_setup_nav', 'my_setup_nav' ); function my_remove_album_nav() { if (!bp_is_my_profile()) { remove_action( 'bp_setup_nav', 'bp_album_setup_nav' ); } } add_action( 'bp_setup_nav', 'my_remove_album_nav', 9 );
you can customize it to suit your needs.
adamParticipantyou can put this in quick css:
COPY CODE.label.radius.pmpro_label { display: none; }
adamParticipantshow us your code.
it should look like this:
COPY CODE/* Filter the redirect url for login*/ add_filter("login_redirect","kleo_redirect_to_profile",100,3); function kleo_redirect_to_profile($redirect_to_calculated,$redirect_url_specified,$user){ /*if no redirect was specified,let us think ,user wants to be in wp-dashboard*/ if(!is_super_admin($user->ID)) return bp_core_get_user_domain($user->ID ); else return $redirect_to_calculated; /*if site admin*/ }
adamParticipant@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 1, 2013 at 21:02 in reply to: Remove Button (Send Public Message) From Profile Header #7542adamParticipantPut this code in your functions.php file to remove the Send Public Message button:
COPY CODEfunction remove_public_message_button() { remove_filter( 'bp_member_header_actions','bp_send_public_message_button', 20); } add_action( 'bp_member_header_actions', 'remove_public_message_button' );
adamParticipantin header.php you’ll see this:
COPY CODE<li><a href="#"> <i class="icon-user hide-for-medium-down"></i> <?php _e("LOG IN", 'kleo_framework'); ?></a></li>
change “#” to whatever url you like.
as far as the log-in modal…are you sure you’re logged out fully from WP-Admin before trying to log-in using the modal? sometimes i have that problem.
adamParticipantI see now I can keep the search form on in WP-Admin->Sweetdate and hide the search parts with css leaving the carousel intact.
COPY CODE.form-search, .form-header { display: none; }
I just need to figure out how to change the Latest registered members text.
adamParticipantdoes your css look like this?
COPY CODE.activity-list span.avatar, #whats-new-avatar, #activity-stream div.avatar { height: 60px; width: 60px; left: -30px; margin-bottom: 20px; }
if not, give it a shot in quick css. that should work for activity at least. not sure which widgets you mean?
adamParticipantthis will redirect users to their profile when they log-in and the administrator (you) to wp-admin:
COPY CODE/* Filter the redirect url for login*/ add_filter("login_redirect","kleo_redirect_to_profile",100,3); function kleo_redirect_to_profile($redirect_to_calculated,$redirect_url_specified,$user){ /*if no redirect was specified,let us think ,user wants to be in wp-dashboard*/ if(!is_super_admin($user->ID)) return bp_core_get_user_domain($user->ID ); else return $redirect_to_calculated; /*if site admin*/ }
it goes in the functions.php file of your child theme. is this what you’re looking for?
adamParticipantok change the bottom part to:
COPY CODE/* Display nothing on photo */ function my_custom_icon () { return null; }
adamParticipantI had this same problem. I believe this is how I fixed it. Add this to your quick css:
COPY CODE/*removes bottom portion of map on homepage*/ .map-bg { background-image:none; }
adamParticipantit should just put this in your functions.php (child theme file):
COPY CODEadd_action('after_setup_theme','kleo_my_hearts_actions'); function kleo_my_hearts_actions() { /* Replace the heart over images */ add_filter('kleo_img_rounded_icon', 'my_custom_icon'); } /* Replace the heart with a camera icon function */ function my_custom_icon () { return 'camera'; }
adamParticipantthis code breaks my site. is the syntax correct?
do i put it below:COPY CODEif (!class_exists('BpMembersTab_bp_album')):
and above:
COPY CODEendif;
?
I REALLY appreciate this. Thanks!
adamParticipantthanks – i have a custom registration page though (mysite.com/registration). so would this be the correct code?:
COPY CODE/*PMPro redirect*/ add_filter('kleo_pmpro_url_redirect', 'my_custom_redirect'); function my_custom_redirect() { if (is_user_logged_in()) { return pmpro_url("levels"); } else { return ('/registration'); } }
it seems to load slowly.
adamParticipantthanks – i realized i can just hide the activity settings through css:
COPY CODE#activity-notification-settings { display: none; }
adamParticipantthis or something like it is in your functions.php, right?
COPY CODEfunction kleo_my_custom_tab() { global $bp_tabs; $bp_tabs['base'] = array( 'type' => 'regular', 'name' => apply_filters('kleo_extra_tab2',__('About Me', 'kleo_framework')), 'group' => 'About Me', 'class' => 'regulartab' ); /* rtMedia tab - only if plugin installed */ if (class_exists('RTMedia')) { $bp_tabs['rtmedia'] = array( 'type' => 'rt_media', 'name' => __('Our photos', 'kleo_framework'), 'class' => 'mySlider' ); } /* Bp-Album tab - only if plugin installed */ elseif (function_exists('bpa_init') AND sq_option('bp_album', 1) == 1) { $bp_tabs['bp-album'] = array( 'type' => 'bp_album', 'name' => __('Our Photos', 'kleo_framework'), 'class' => 'mySlider' ); }
just delete this part:
COPY CODE$bp_tabs['base'] = array( 'type' => 'regular', 'name' => apply_filters('kleo_extra_tab2',__('About Me', 'kleo_framework')), 'group' => 'About Me', 'class' => 'regulartab' );
adamParticipanttry this:
COPY CODEfunction my_remove_activity() { global $bp; $bp->bp_nav['activity'] = false; } add_action( ‘bp_setup_nav’, ‘my_remove_activity’ );
adamParticipantCOPY CODE#logo img { display: block; float: left; margin-top: -22px; }
play around with margin-top. float the drop down text left, just find the css class.
adamParticipantyea i was just going to tell you i looked at your site and i think you changed that css class name. I tried
COPY CODEul#menu-sweetdate.left { margin-left: -60px; }
and it fit nicely
adamParticipantCOPY CODE.top-bar ul.left { float: left; width: 600px; margin-bottom: 0; margin-left: 50px; }
increase margin-left as much as you need. at least that’s what i did. the problem is it looks better in chrome than on other browsers 🙂
adamParticipantHi @seiglufer – This is how I removed the entire bottom navigation in functions.php:
COPY CODEfunction my_remove_profile_nav() { global $bp; if (!bp_is_my_profile()) { bp_core_remove_nav_item( 'profile' ); bp_core_remove_nav_item( 'groups' ); bp_core_remove_nav_item( 'friends' ); bp_core_remove_nav_item( 'forums' ); bp_core_remove_nav_item( 'events' ); bp_core_remove_nav_item( 'location' ); bp_core_remove_nav_item( 'settings' ); } } add_action( 'bp_setup_nav', 'my_remove_profile_nav' ); function my_setup_nav() { global $bp; $bp->bp_nav['activity'] = false; } add_action( 'bp_setup_nav', 'my_setup_nav' ); function my_remove_album_nav() { if (!bp_is_my_profile()) { remove_action( 'bp_setup_nav', 'bp_album_setup_nav' ); } } add_action( 'bp_setup_nav', 'my_remove_album_nav', 9 );
Just remove ‘forum’ using the function above and erase everything else if that’s the only one you want removed.
-
AuthorPosts