-
liping posted on the forum topic defult submenu on profile page in the group How-To and Troubleshooting: 13 years, 8 months ago
Are you using
bp_core_new_nav_item
? If you set the position to any value less than 10, it should work since Activity’s position is 10. ` bp_core_new_nav_item( array( ‘name’ => ‘Your Item’, ‘slug’ => ‘yourslug’, ‘position’ => 9, // Activity is 10, so any value lower than 10 should work ‘screen_function’ => ‘your_screen_function’,…[Read more] -
liping posted on the forum topic Changing default_subnav_slug for Activity in the group How-To and Troubleshooting: 13 years, 8 months ago
I finally figured it out (took way too long). Here are the code snippets to be placed in bp-custom.php (NOT functions.php, my fatal hair-tearing mistake). ` /** wp-content/plugins/bp-custom.php **/ function my_change_activity_default_subnav() { global $bp; if (bp_is_my_profile()) { bp_core_new_nav_default(array( ‘parent_slug’ =>…[Read more]
-
liping posted on the forum topic Changing default_subnav_slug for Activity in the group How-To and Troubleshooting: 13 years, 8 months ago
I loathe to bump this, but I really really don’t want to hack core files to do this. Anyone?
-
liping posted on the forum topic Changing default_subnav_slug for Activity in the group How-To and Troubleshooting: 13 years, 8 months ago
Bump, anyone?
-
liping posted on the forum topic Changing default_subnav_slug for Activity in the group How-To and Troubleshooting: 13 years, 9 months ago
I have no wish to change the slug or labels.
What I want is to change the default subnav slug for Activity.Currently http://yoursite/members/myaccount/activity/ defaults to Personal.
I want to change this to default to Friends instead.
-
liping started the forum topic Changing default_subnav_slug for Activity in the group How-To and Troubleshooting: 13 years, 9 months ago
Short of changing core buddypressbp-activity.php, I haven’t been able to change the activity’s default_subnav_slug from Personal to Friends. Does anyone have a clue? I’m copied the whole bp_activity_setup_nav (from bp-activity.php) into a custom function inside the theme’s functions.php function my_bp_activity_setup_nav { global $bp;…[Read more]
-
liping started the forum topic Shift Admin Bar to Right in the group How-To and Troubleshooting: 13 years, 9 months ago
Hi everyone I’m new to BuddyPress (but pretty familiar with WP). I’ve been trying to modify the admin-bar to be right-align. I’ve got it this far: https://i.imgur.com/O0kBt.png by changing the css ( #wp-admin-bar ul li { float: right; } ) and reversing the add_action sequence for bp_adminbar_menus. BUT I’m having problems trying to get the […]
-
liping joined the group How-To and Troubleshooting 13 years, 9 months ago
@liping
Active 1 year ago