The Support Forums will be in read-only mode for a scheduled maintenance window on 01 September 2016 14:00 UTC - 20:00 UTC. More information.

[resolved] [Twenty Eleven] Replacing the header text on home page (3 posts)

  1. Revived
    Posted 5 years ago #

    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?)


  2. Caroline Moore
    Posted 5 years ago #

    Any reason you can't re-title the page to your preferred title? That seems like the simplest solution.


    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 {
    } ?>

    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.

  3. Revived
    Posted 5 years ago #

    Works great, thank you!

Topic Closed

This topic has been closed to new replies.

About this Topic


No tags yet.