- Installing SureDash
- Download and Access Your SureDash License
- Updating SureDash
- Understanding Spaces and Space Groups in SureDash
- Add a Space Content Type in SureDash
- How to Set Up a SureDash Course Space
- How to Set Up Google Login in SureDash: A Step-by-Step Guide
- How to Set Up Facebook Login in SureDash: A Step-by-Step Guide
- Understanding the Customize Portal in SureDash
- How To Add a Logo To The SureDash Portal
- Setting up Space Groups
- Hidden Spaces in SureDash
- How to Create a Feed Space
- How to Set up “Course” space in SureDash?
- How to Create a “Discussion” Space in SureDash
- How To Set Up A Private Discussion Space In SureDash
- Creating a “Single Post/Page” Space in SureDash
- How to Set Up a “Link” Space in SureDash
- How to Configure SureDash Space Layouts
- Understanding the “Single Post/Page” Space Type in SureDash
- How to Regenerate the Default SureDash Pages
- Recommended Hosting for SureDash
- Customizing the Portal Slug Using a Filter
- How to Edit SureDash Space or Post with Any Page Builder
- How to Use the Profile URLs in SureDash
- How to Manage Navigation Sidebar Top Sticky Offset in SureDash
- Custom Classes Used in Site Editor and Their Purpose
- How to Reset the Portal Template in SureDash?
- Media Handling in the Resource Library
- Location Where Users Can View Their Accessed Resources in SureDash
- Recommended Image Sizes for SureDash
Customizing the Portal Slug Using a Filter
SureDash now supports a filter that allows developers to change the default portal slug (/portal/
) to something more custom, like /community/
. This gives site owners more flexibility when branding or organizing their URLs.
Note: This feature is available starting from the RC5 and above. Ensure you’re using the latest version of SureDash before applying this.
How to Change the Portal Slug
You can use the following code snippet in your theme’s functions.php file or insert it using a custom plugin:
add_filter( 'suredash_portal_slug', 'suredash_update_portal_slug' );
/**
* Change the SureDash portal slug.
*
* @param string $slug The existing slug.
* @return string The updated slug.
* @since 1.0.0
*/
function suredash_update_portal_slug( $slug ) {
return 'community'; // Change this to your desired slug.
}
Additional Steps Required
After adding this snippet:
- Flush the permalinks by visiting Settings > Permalinks in your WordPress dashboard and clicking Save Changes (you don’t need to make any changes, just hit save).
- Rebuild any SureDash blocks if you’re using them, so that they correctly reflect the updated URL structure.
You can now customize the SureDash portal slug using the suredash_portal_slug
filter. Just add the provided snippet to your site and flush permalinks for the change to take effect. This offers a simple way to align the portal URL with your branding or site structure.
We don't respond to the article feedback, we use it to improve our support content.