Skip to:
Content
Pages
Categories
Search
Top
Bottom

Buddypress 2.6 front.php integration with WordPress Menu


  • ekruep
    Participant

    @ekruep

    Thanks to the updates implemented in BuddyPress 2.6, I’ve been able to load a front.php page as a “member landing page” for individual community members (Thank you @imath and others!!).

    However, I do not see a way to integrate a nav link to this new landing page in the WordPress menu I have in the header. I might expect an option under Appearance –> Menus –> BuddyPress –> Logged-In for this page (i.e., a checkbox with label “Front” or “Home”) similar to the components that are already there (e.g., Profile, Notifications, Settings, Logout).

    Am I missing a simple way to make this happen?

    Thanks in advance for any insights!

Viewing 2 replies - 1 through 2 (of 2 total)

  • ekruep
    Participant

    @ekruep

    Okay, just in case anyone else is wanting to do this, my developer helped me implement a solution!!

    Here is the function he wrote and placed in the bp-custom.php file.

    function add_front_menu_item( ) {
    
        global $bp;
    
        $args = array(
            'name' => __('Home', 'buddypress'),
            'slug' => 'front',
            'default_subnav_slug' => 'public',
            'position' => 10,
            'show_for_displayed_user' => false,
            'screen_function' => 'bp_custom_user_nav_item_screen',
            'item_css_id' => 'custom-class'
        );
    
        bp_core_new_nav_item($args);
    

    I hope this helps someone else save time and frustration!


    Earl_D
    Participant

    @earl_d

    Thanks for sharing that. Appreciate the generosity.

Viewing 2 replies - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.
Skip to toolbar