WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. Revived
    Member
    Posted 3 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?)

    http://c-o-o-p.org/

  2. Caroline Moore
    Member
    Posted 3 years ago #

    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.

  3. Revived
    Member
    Posted 3 years ago #

    Works great, thank you!

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.