-
Author
-
November 6, 2013 at 19:35 #6106JohnDoeParticipant
I tried to modify ur code for hiding the forum ,
// Remove forums menu item
function my_setup_nav() {
global $bp;unset($bp->bp_nav[‘forums’]);
}add_action( ‘bp_setup_nav’, ‘my_setup_nav’, 1000 );
Too
// Remove activity menu item
function my_setup_nav() {
global $bp;unset($bp->bp_nav[‘activity’]);
}add_action( ‘bp_setup_nav’, ‘my_setup_nav’, 15 );
But that gives me an error, i once had a code to remove it , but when u load a profile , it still loads the Activity, but just doesn’t show it on the profile nav .
Would be very happy with a fix.
November 7, 2013 at 02:47 #6167adamParticipanthey – make sure you don’t already have a function called my_setup_nav in your functions.php file.
also, check out this topic if you haven’t already:
https://archived.seventhqueen.com/forums/topic/hide-profile
i share my code on there that removes the activity.November 7, 2013 at 19:24 #6201JohnDoeParticipanti do have have a function for that allready since i removed the forums tab, how can i remove 2 then?
November 7, 2013 at 19:39 #6203adamParticipanttry this:
COPY CODEfunction my_remove_activity() { global $bp; $bp->bp_nav['activity'] = false; } add_action( ‘bp_setup_nav’, ‘my_remove_activity’ );
November 7, 2013 at 23:25 #6215SQadminKeymasterHi,
This code worksCOPY CODEfunction my_remove_profile_nav() { global $bp; bp_core_remove_nav_item( 'activity' ); } add_action( 'bp_setup_nav', 'my_remove_profile_nav' );
Also removing the activity, which is the default component that shows when you are viewing a profile you will have a 404 page. See this to change the default component:
https://archived.seventhqueen.com/forums/topic/buddypress-profile-landing-page-changeHi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionNovember 7, 2013 at 23:34 #6218JohnDoeParticipanto i allready added
define( ‘BP_DEFAULT_COMPONENT’, ‘profile’ );
in wp-config.php before.
Now
// Remove forums menu item
function my_setup_nav() {
global $bp;unset($bp->bp_nav[‘forums’]);
}add_action( ‘bp_setup_nav’, ‘my_setup_nav’, 1000 );
Doesn’t remove the forums anymore.. :p
November 9, 2013 at 01:13 #6300SQadminKeymasterThis is the topic for hiding the forums.. https://archived.seventhqueen.com/forums/topic/how-do-i-remove-the-forums-tab
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionNovember 12, 2014 at 05:44 #35153ParkproductionsParticipantIs there a thread for removing items from group pages? I need to get rid of members and send invites from invite-anyone plugin
November 12, 2014 at 16:43 #35209AbeKeymasterI don’t know about that. try to edit groups templates. all related templates are in the theme folder under groups folder
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.November 29, 2015 at 06:01 #89915Loyal_CustomerParticipantHello,
The link provided above is inactive (https://archived.seventhqueen.com/forums/topic/how-do-i-remove-the-forums-tab).
Can you please tell me which code works for hiding the “forums” tab on profiles.Thank you.
December 13, 2015 at 01:02 #92935AbeKeymasterthe link should work now. Thanks
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. -
AuthorPosts
The forum ‘Sweetdate – WordPress’ is closed to new topics and replies.