1. Home
  2. Knowledge Base
  3. Customizations
  4. PHP Functions
  5. How to Remove “WordPress” in the Link Preview

How to Remove “WordPress” in the Link Preview

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:

  1. Edit the page or post you want to share.
  2. Scroll to the SEO plugin’s snippet editor.
  3. Select the Social tab to change the title, description, and image for external link previews.
  4. 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:

  1. In your WordPress admin dashboard, go to Appearance > Theme Editor.
  2. Under Select theme to edit, choose your active theme (preferably BuddyBoss Child Theme), then click Select.
  3. From the Theme Files list, click Theme Functions (functions.php).
  4. 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;

}
  1. Click Update File to save your changes.

Note: Modifications are typically considered custom work, but we are making an exception in this case. Please review the BuddyBoss Support Policy.

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.

Was this article helpful?

Related Articles

Subscribe to Our Newsletter

Stay In Touch

Subscribe to our Newsletter, and we’ll send you the latest news from BuddyBoss

  • This field is hidden when viewing the form
  • This field is for validation purposes and should be left unchanged.

To speak to our Agency consultant, fill in the form found at our Contact Page.

  • Get Started

    Enter your name and email address to get started with your project...

  • This field is for validation purposes and should be left unchanged.