Starting with 4.1 and Twenty Fifteen, the recommended way for themes to display titles is by adding theme support like this:
function theme_slug_setup() {
add_theme_support( 'title-tag' );
}
add_action( 'after_setup_theme', 'theme_slug_setup' );
Thread Starter
Rick
(@itwd)
So where do I cut/paste this in WordPress?
Your parent theme already has this function. So why do you want to add it?
Thread Starter
Rick
(@itwd)
Hi Poonam:
Currently, on our homepage for example, the tag is <title>Home -</title>
I want it to say <title>Poolesville High School Athletic Booster Club</title>
[Moderator note: code fixed. Please wrap code in the backtick character or use the code button.]
-
This reply was modified 9 years, 1 month ago by
bdbrown.
Hello,
You can easily do that by edit that page.
Navigate to WordPress dashboard -> All Pages -> Home
Edit that page and change the title from “Home” to “Poolesville High School Athletic Booster Club”
click on update button.
Hope it helps and let me know if you require any further assistance.
Thread Starter
Rick
(@itwd)
I don’t think you understand my question. I want the <title> tag in the source code to include our organization’s name but I only want to show “Home” in the top navigation link on the webpage itself.
Yes, I understand your concern, the solution which I provide does the exact thing that you want.
For Navigation link go to Appearance -> menu and select that page and change the Navigation Label as per your choice example “Home”.
Hope it helps and let me know if you require any further assistance.
Thread Starter
Rick
(@itwd)
On the Appearance menu there is no selection on the flyout menu item to select any pages.
I’m glad it’s resolved!
Please, let us know if you need anything else.
Kind Regards,
-Roch