This code enables you to use any conditional tag to change the site description which some people refer to as the tagline. In this example, the site description is changed on one specific single page named Demo. The slug for this page is demo however you could also use the page id.
Here’s the part of the code which controls which page the site description is modified.
is_page( 'demo' )
You can replace this conditional with any other to target specific pages, posts, archives etc.
Here’s the demo video showing a very simple example of how the site description is modified on the page named Demo.
Demo Video
Shows a custom site description when the demo page is loaded.
Note : The code also enables you to modify the site description on all/any single posts/pages, blog listings page, author, category, search, and tag archive page types. Support for this is included for registered users.
Code Installation
There’s only 1 step :
From the download folder, copy & paste the PHP code to the end of your child themes functions file.
Register or login to access the code in the download folder :
Was This Tutorial Helpful?