Skip to:
Content
Pages
Categories
Search
Top
Bottom

Trying to change slug of Group Tab. Tried 3 different ways still no good?


  • johnnymestizo
    Participant

    @johnnymestizo

    Hi

    I am trying to change my group tab slugs at:

    http://tradr.co/groups/test-group-1/

    I have a discussions tab. I figured out how to change the name in my themes functions.php

    But I cant change the slug?

    ATTEMPT 1

    in wp-config.php
    define( ‘BP_FORUMS_SLUG’, ‘discussions’ );
    change to discussions no good

    ATTEMPT 2
    in bp-custom.php in plugins folder…
    define( ‘BP_FORUMS_SLUG’, ‘discussions’ );
    no good.

    ATTEMPT 3
    in themes functions.php
    $bp->bp_options_nav = ‘discussions’;
    no good

    This tutorial about changing slugs did not work.
    http://codex.buddypress.org/extending-buddypress/customizing-labels-messages-and-urls/

    I have not attempted changing the language file… surely, this should not be that hard…

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

  • Roger Coathup
    Participant

    @rogercoathup

    Which theme are you using? Does it work (with attempt one) if you switch to no-default theme?

    If not, did you cut and paste the line? You may have incorrect type of quotes. Try typing line from scratch in editor


    Roger Coathup
    Participant

    @rogercoathup

    Bp-default .. Not no-default! Auto-correct spelling!


    johnnymestizo
    Participant

    @johnnymestizo

    Added this to wp-config.php whilst using bp-default

    // Custom Buddypress slugs
    define( ‘BP_ACTIVATION_SLUG’, ‘activate’ );
    define( ‘BP_ACTIVITY_SLUG’, ‘activity’ );
    define( ‘BP_BLOGS_SLUG’, ‘shops’ );
    define( ‘BP_FORUMS_SLUG’, ‘discussions’ );
    define( ‘BP_FRIENDS_SLUG’, ‘friends’ );
    define( ‘BP_GROUPS_SLUG’, ‘groups’ );
    define( ‘BP_MEMBERS_SLUG’, ‘members’ );
    define( ‘BP_MESSAGES_SLUG’, ‘messages’ );
    define( ‘BP_REGISTER_SLUG’, ‘register’ );
    define( ‘BP_SEARCH_SLUG’, ‘search’ );
    define( ‘BP_SETTINGS_SLUG’, ‘settings’ );
    define( ‘BP_XPROFILE_SLUG’, ‘profile’ );

    /* That’s all, stop editing! Happy blogging. */


    johnnymestizo
    Participant

    @johnnymestizo

    that did not work


    johnnymestizo
    Participant

    @johnnymestizo

    created a bp-custom.php and put it in wp-content/plugins

    added this within php tags

    // Custom Buddypress Stuff

    // Custom Buddypress slugs
    define( ‘BP_ACTIVATION_SLUG’, ‘activate’ );
    define( ‘BP_ACTIVITY_SLUG’, ‘activity’ );
    define( ‘BP_BLOGS_SLUG’, ‘shops’ );
    define( ‘BP_FORUMS_SLUG’, ‘discussions’ );
    define( ‘BP_FRIENDS_SLUG’, ‘friends’ );
    define( ‘BP_GROUPS_SLUG’, ‘groups’ );
    define( ‘BP_MEMBERS_SLUG’, ‘members’ );
    define( ‘BP_MESSAGES_SLUG’, ‘messages’ );
    define( ‘BP_REGISTER_SLUG’, ‘register’ );
    define( ‘BP_SEARCH_SLUG’, ‘search’ );
    define( ‘BP_SETTINGS_SLUG’, ‘settings’ );
    define( ‘BP_XPROFILE_SLUG’, ‘profile’ );

    still no good


    johnnymestizo
    Participant

    @johnnymestizo

    awwww snap. it is talking about the main header link… forums!

    i am talking about the group tab forum !

    damn!

    Still attempt 3 is not working which should change the group tab forum …

    Johnny

    I don’t think you can easily change sub-nav items’ slugs in 1.2.9

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Trying to change slug of Group Tab. Tried 3 different ways still no good?’ is closed to new replies.
Skip to toolbar