How To Create A Inactive Tab Message.

Difficulty Rating :
Written byAires DaGraca

For this tutorial I am going to show you how to change the browser tab title when the user clicks away from your site.

Let’s begin.

To make it easy for everyone to follow without having to go inside the theme files and enqueueing scripts we are going to use another plugin to assist with this tutorial.

The plugin you need to install is called Simple Custom CSS & JS .

After you have it installed and activated go to Custom CSS & JS and select Add JS Code.

A new window will open and you should give it a descriptive title and paste in this bit of JS below the commented portion.

Before you save your script be sure to tell the plugin where to put the script. It gives you two options choose footer and save it.

And that’s it go to your front end and see the magic.

Thanks for reading.

Was this article helpful?

Awesome, follow us on Twitter or Like us on Facebook

Disclosure: Some of the links above are affiliate links meaning at no additional cost to you, I will earn a commission if you click through and make a purchase.

Leave a Comment

Your email address will not be published. Required fields are marked *

By visiting iHeartElementor.com you accept our use of cookies and agree to our privacy policy.

Hello, would you like to take a survey before you leave.

Your answers will help us provide more and useful content.
Thank you for your time.