Introduction
When sharing your site’s link on other platforms, the preview may show something like Your Domain – WordPress – Login. BuddyBoss does not provide a built-in option to remove the word WordPress from these previews. You can fix this either via an SEO plugin or by adding a small custom function to your theme. This guide explains how you can remove “WordPress” in the link preview.
Option 1: Using an SEO Plugin
Most users run SEO plugins such as Yoast SEO or AIOSEO. These plugins allow you to customize the link preview for pages and posts:
- Edit the page or post you want to share.
- Scroll to the SEO plugin’s snippet editor.
- Select the Social tab to change the title, description, and image for external link previews.
- Optionally, configure the plugin’s global Social settings to set default previews for all pages on your domain.
This option is recommended as it improves SEO and branding.
Option 2: Manually via Theme Functions
If you are not using an SEO plugin or need a manual solution, you can add the following code to your theme:
- In your WordPress admin dashboard, go to Appearance > Theme Editor.
- Under Select theme to edit, choose your active theme (preferably BuddyBoss Child Theme), then click Select.
- From the Theme Files list, click Theme Functions (functions.php).
- Paste the following code just before the closing PHP tag (?>):
add_filter( 'login_title', 'custom_login_title' );
function custom_login_title() {
$title = 'Log In';
return get_bloginfo('name').' ‹ '.$title;
}- Click Update File to save your changes.
Troubleshooting and FAQs
Q: The WordPress text still appears in the preview, what should I check?
A: Clear your cache and ensure the correct SEO plugin or function is active.
Q: Can I change the text to anything I want?
A: Yes, you can modify the $title variable in the function to display custom text.
Q: Will this affect the login page functionality?
A: No, it only changes the text in the page title and link previews.
Q: Can I revert this change easily?
A: Yes, remove the code from functions.php and save.
Q: Who can I contact for further assistance?
A: Please review the BuddyBoss Support Policy or consult a developer.