Skip to:
Content
Pages
Categories
Search
Top
Bottom

Change "activity" slug


  • milenushka
    Participant

    @milenushka

    Hello,

    buddypress codex says it should be fairly easy to change the default pages.
    https://codex.buddypress.org/themes/bp-custom-php/:

    Defining custom slugs
    Developers may modify the default URL slugs for activity, forums, etc by adding a statement in the bp-custom.php file.

    // change 'discuss' to whatever you want
    define( 'BP_FORUMS_SLUG', 'discuss' );

    I tried putting these in my function.php, but that does not work.

    
    define( 'BP_FORUMS_SLUG', 'discussions' );
    define ( 'BP_ACTIVITY_SLUG', 'community' );

    if I do what is suggested in this tutorial

    Customizing Labels, Messages, and URLs

    Slugs
    For example, if you are running a sports website with BuddyPress, you could rename the URL slug example.com/members to example.com/players by changing the url of the corresponding component page in the WordPress admin -> pages.

    I can change the page’s slug , but cannot edit the page anymore.
    I am using wp composer / shortcodes to design the activity page and these do not work if the slug is renamed from wp admin >pages. I am not able to add text, nor images to the page.

    Can anybody help, please?

    Thank you.

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Change "activity" slug’ is closed to new replies.
Skip to toolbar