On the home page, I'd like the entry header to say something else other than "Home" ... which is the page title.
Is this possible? Perhaps with a new page template (if so, how?)
On the home page, I'd like the entry header to say something else other than "Home" ... which is the page title.
Is this possible? Perhaps with a new page template (if so, how?)
Any reason you can't re-title the page to your preferred title? That seems like the simplest solution.
Otherwise:
First create a child theme for Twenty Eleven so you don't modify the original code. Activate this theme on your website.
Copy content-page.php from Twenty Eleven into the child theme's folder.
Within the copy of content-page.php, replace the following code for the page title:
<?php the_title(); ?>
With this:
<?php if(is_front_page()) {
echo 'Your Preferred Home Page Title';
}
else {
the_title();
} ?>
With this solution, any page you designate as the Front page under Settings -> Reading will have "Your Preferred Home Page Title" instead of the given page title.
Works great, thank you!
This topic has been closed to new replies.