Skip to:
Content
Pages
Categories
Search
Top
Bottom

Default to "view" instead of "edit" profile

  • @screampuff

    Participant

    Hello, I changed the default section of the profile to be the “Profile” tab instead of “Activity”, but am also wondering how to default the secondary tab to “View” instead of edit.

Viewing 5 replies - 1 through 5 (of 5 total)
  • @shanebp

    Moderator

    It should default to View.
    How did you change the default section to Profile?

    @screampuff

    Participant

    Created bp-custom.php with

    `define(‘BP_DEFAULT_COMPONENT’, ‘profile’ );’

    And I think the issue is that the link when you click your name from the dropdown in the WP toolbar (wp_admin_bar) has /edit/ at the end, so I will need to change that. Any idea where I would do that?

    @shanebp

    Moderator

    That area is controlled by WordPress, not BuddyPress

    Try this in bp-custom.php or your theme/functions.php
    https://gist.github.com/shanebp/91acc541776cc083e3a5

    @shanebp

    Moderator

    @screampuff

    Participant

    That worked perfectly in bp-custom.php

    Thanks for your help, I appreciate it!

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Default to "view" instead of "edit" profile’ is closed to new replies.
Skip to toolbar