Skip to:
Content
Pages
Categories
Search
Top
Bottom

Slugs

  • @dlabbe

    Participant

    I have tried to change the nav text by example below in my wp-config.php file as well I tried to add it in a bp-custom.php file in wp-content/plugins folder. Nothing is happening…no change. What am I missing?

    define( ‘BP_MEMBERS_SLUG’, ‘players’ );

    UPDATE….I tried some more testing with other things such as defining avatar size and such in the bp-custom.php file and it works fine. I tried changing the nav bar text and nothing happens. However, I noticed the nav bar does not functions the same after…example if I include the line above it changes the default load page for the site. Something strange is happening! please help

Viewing 7 replies - 1 through 7 (of 7 total)
  • @djpaul

    Keymaster

    It should work in your wp-config.php. Where exactly within the file are you putting it?

    @dlabbe

    Participant

    I tried both locations wp-config.php and bp-custom.php with no luck. I included it in the wp-config.php right before /* That’s all, stop editing! Happy blogging. */
    Like I said nothing happens other then make the nav act strange. I tried it on a local site and live site with no results. Any ideas? I am running the newest version of BP.

    @dlabbe

    Participant

    I need to make a correction. The nav only acts strange if I leave the name field blank such as define( ‘BP_MEMBERS_SLUG’, ‘ ’ );
    I only did this to test to see if there was any type of recognition. If I insert the desired name like define( ‘BP_MEMBERS_SLUG’, ‘players’ ); then I get no change what so ever in the function nor name in the nav.

    @rogercoathup

    Participant

    Which theme are you using? Does it work OK if you switch to the bp-default theme? Are you sure your theme has been written to make use of the slugs?

    @dlabbe

    Participant

    I got it working…not sure the issue but did a quick re-install. Might have been all the tweeks in the past few weeks. Now…what is the best way to change the text itself in the navar? I simply changed it in the header.php file, but is that the best and only way?

    @chouf1

    Participant

    the best way to modify the header.php is to copy it into a child theme, after what you can make your modification
    https://codex.buddypress.org/extending-buddypress/building-a-buddypress-child-theme/

    @rogercoathup

    Participant
Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Slugs’ is closed to new replies.
Skip to toolbar