You can change tab title in WordPress when inactive using either a plugin or a small JavaScript snippet.
Both methods are easy and will only take a few minutes to set up.
In this guide, we will walk through both plugin-based and code-based methods, then cover title ideas, best practices, and more.
Let’s start with the easiest method.
Method 1: Change the Tab Title in WordPress Using a Plugin
The simplest way to change the inactive tab title is with a plugin. If you use a standard WordPress setup, a general-purpose plugin will work well. Or if your site uses a page builder like Divi, you can use a Divi-specific plugin instead.
Below, we will cover both.
Option 1: Change Tab Titles on Standard WordPress Sites
For this method, we will use Browser Tab Title Reminder. You can also use another plugin that provides the same functionality.
Step 1: Install and Activate the Plugin
From your WordPress Dashboard:
- Go to Plugins > Add New Plugin.
- Search for Browser Tab Title Reminder.
- Click Install Now, then Activate.
Step 2: Set the Inactive Title and Delay
Go to Settings > Browser Tab Title and configure:

- Title on inactive tab: Enter the message to show when a visitor switches away from the tab.
- Delay before showing a new title: Set how many seconds to wait before changing the title.
Step 3: Test the Effect
Open your website and switch to another browser tab. Wait for the set delay, and the custom title should appear. Return to the tab to see the original page title again.
Option 2: Change Tab Titles & Favicons on Divi-Powered Sites
If you use Divi, DiviFlash’s Change Page Title on Leave extension lets you change the inactive tab title and favicon.
Here is the step-by-step process.
Step 1: Install DiviFlash or Update to 5.5.0
Install and activate DiviFlash. If you already use it, make sure you are running version 5.5.0 or higher.
Step 2: Enable Change Page Title on Leave
Go to DiviFlash > Settings, find Change Page Title on Leave, and toggle it on.

Step 3: Configure the Inactive Tab
Configure the main options:

- Leave Title Text: Enter the title to show when visitors leave the tab.
- Leave Favicon: Add the favicon to show when the tab is inactive.
- Delay Before Title Changes: Set how long to wait before changing the title and favicon.
- Display On: Choose where to apply the effect:
- Entire Site
- Specific Post Type
- Specific Page/Post
Step 4: Test the Effect
To test it, open the page on the front end, switch to another tab, and wait for the set delay. The tab title and favicon will change to your custom ones, then revert when you return.
See how it looks on a live site:
Method 2: Change Tab Title in WordPress Without a Plugin
If you don't want to install a plugin like Browser Tab Title Reminder, you can create the same effect with a small JavaScript snippet.
For this method, you will add one JavaScript file to your theme and then load it through functions.php. Using a child theme is safer because theme updates can overwrite changes made to the main theme.
Here is the step by step process:
Step 1: Create the JavaScript File
First, open your hosting account and access File Manager.
- Open File Manager.
- Go to public_html.
- Open wp-content.
- Open themes.
- Find your active theme and open its folder.
- Create a new file named inactive-tab-title.js.
- Open the file and add this code:
const originalTitle = document.title;
document.addEventListener("visibilitychange", function () {
if (document.hidden) {
document.title = "Come Back! We Miss You 👋";
} else {
document.title = originalTitle;
}
});
- Replace Come Back! We Miss You 👋 with the title you want to show when visitors leave the tab.
- Save the file.
Note: If you use a child theme, open the child theme's folder instead of the main theme folder.
Step 2: Load the JavaScript File
Now you need to tell WordPress to load the JavaScript file.
- In the same theme folder, find functions.php.
- Create a backup of the file before making any changes.
- Open functions.php using the File Manager's Edit option.
- Add the following code at the end of the file:
function inactive_tab_title_script() {
wp_enqueue_script(
'inactive-tab-title',
get_stylesheet_directory_uri() . '/inactive-tab-title.js',
array(),
'1.0',
true
);
}
add_action( 'wp_enqueue_scripts', 'inactive_tab_title_script' );
- Save the file.
Important: Don't add another <?php if the file already starts with it. And if you placed inactive-tab-title.js inside another folder, update the file path in the code.
Step 3: Test the Effect
Save your changes, open your website, and switch to another tab. The new title will appear and change back when you return.
Note: Sometimes WordPress may not let you save changes to functions.php, which is why we recommend using your hosting File Manager or SFTP to edit the file.
What Should You Use as an Inactive Tab Title?
Here are some of the inactive tab titles you can use based on the type of page:
| Site/page | Example |
| Blog post | 👋 Keep reading |
| Tutorial | Continue the guide → |
| Product page | Still deciding? |
| Cart | 🛒 Your cart is waiting |
| Checkout | Checkout is still open |
| Pricing page | Still comparing? |
FAQ
What Is an Inactive Tab Title?
An inactive tab title is a custom title that appears when a visitor switches away from your webpage. It replaces the normal title with a message like “Come Back” and returns to the original title when they come back.
Can you change the tab title in WordPress without a plugin?
Yes. You can use JavaScript to change the tab title when the page becomes inactive and restore the original title when the visitor returns.
Can the favicon also change when a WordPress tab becomes inactive?
Yes. Some plugins, such as DiviFlash’s Change Page Title on Leave extension, let you change both the tab title and favicon when the page becomes inactive.
Can you use emojis in an inactive WordPress tab title?
Yes. You can add emojis to the inactive title, such as 👋 Come Back or 🛒 Your Cart Is Waiting, as long as the message stays short and clear.
Does the inactive tab title appear when the browser is minimized?
It can. If the setup detects when the page becomes hidden, minimizing the browser may trigger the same inactive tab title effect.
Can you show different inactive tab titles on different WordPress pages?
Yes, depending on the method you use. DiviFlash, for example, lets you control the effect for the entire site, specific post types, or individual pages and posts.
Will changing the tab title when inactive affect SEO?
Usually, no. If the inactive title is only temporary and the original page title is restored when the visitor returns, it should not replace your normal SEO title.
Does changing the inactive tab title work on mobile devices?
Yes, in many cases. The title can change when the browser goes into the background, but behavior may vary by device and browser.
Final Verdit
Now you know how to change tab title in WordPress when inactive using both plugin-based and custom-code methods.
For the easiest setup, you can use a dedicated WordPress plugin. If you use Divi, DiviFlash gives you more control over the title, favicon, delay, and display conditions. And if you prefer a lightweight custom solution, JavaScript works well too.
Whichever method you choose, keep the inactive title short, relevant, and easy to notice without making it distracting.



0 Comments