I am new to WordPress, and have been asked to change a value in the title tag.
The title tag is of the format: “site name | slogan” which is set dynamically in the header.php (seems standard code for WordPress from what I can see from other posts).
It is the slogan on the home page only that I need to change.
All other pages within the site are ok, I just need to change the home page, and I have no idea if this “slogan” portion of the title is coded somewhere, or set as an attribute etc.
Where and how do I change it?? Thanks
You can do one of two things. The first, recommended way would be to use a plugin like WordPress SEO. Install it, and replace the
<title>
tag in yourheader.php
file with:Or you can change the title only for the home page by using the
is_front_page
oris_home
conditionals.That’s a bit sloppy though, and I’d recommend looking into using
wp_title
instead.Twenty Eleven’s
header.php
has a good example of this:Go to admin dashboard > Settings > General
You are getting General Settings…
All Settings is be their….