Skip to:
Content
Pages
Categories
Search
Top
Bottom

Change default tab to a custom tab


  • rebeccadigitalsea
    Participant

    @rebeccadigitalsea

    Hey.

    I’m trying to redirect to a custom tab ‘gallery’

    I’ve tried using this code in the wp-config but no luck:

    define(‘BP_DEFAULT_COMPONENT’, ‘gallery’ );

    any advice would be much appreciated?

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

  • kayart
    Participant

    @kayart

    Are you sure you’ve added the constant definition in the right place? As the BuddyPress codex says:

    When adding the code to wp-config.php, place it after define(‘DB_COLLATE’, ”); and before the authentication keys. If you add this line to the bottom of wp-config.php, it will not work.


    rebeccadigitalsea
    Participant

    @rebeccadigitalsea

    Heya,

    Yes that’s exactly where I’ve placed it, after DB_COLLATE and before the authentication keys but no luck!

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