• Resolved katie_thompson

    (@katie_thompson)


    Hello!

    I am having a problem with my home page title. I have searched for hours but the only things I can find are about how to change permalinks and the actual page title.

    Here is my situation:
    On my home page, the title in the page tab at the top of the screen is the URL, but on all other pages it has the actual title, which I want. (Ex. Contact Us | ). How can I get the title on the home page to also display “Home |” instead of the URL?

    My Site
    Notice on this page, beside the favicon, is has the URL. When you navigate to another page, it shows the page title.

    Thanks so much in advance, this one has my head spinning!

    -Katie

Viewing 7 replies - 1 through 7 (of 7 total)
  • esmi

    (@esmi)

    What theme are you using? Where did you download it from?

    Thread Starter katie_thompson

    (@katie_thompson)

    I am using a barebones theme called Migration that I got here.

    I know it’s hard for you to help me troubleshoot when I’m not using one of the popular themes. I was hoping that there is a general fix for this that goes across most themes.

    Thanks for your quick response!

    esmi

    (@esmi)

    I’m sorry but as you appear to be using a non-WPORG theme, you need to seek support from the theme’s developers – paid or otherwise. We only support themes downloaded from wordpress.org here.

    Thread Starter katie_thompson

    (@katie_thompson)

    Thanks. I changed my theme to Twenty Twelve and it displayed like I wanted it to, so it is definitely a problem with the theme.

    Could you point me to a place in the codex that explains this? I’m not sure how to word my problem for an effective search…

    esmi

    (@esmi)

    That will not be in the Codex as it deals with WordPress core only. You need to seek support from the theme’s developers.

    Thread Starter katie_thompson

    (@katie_thompson)

    Ok thank you!

    Thread Starter katie_thompson

    (@katie_thompson)

    I found the solution to my problem, so I figured I would post here in case anyone else has the same issue…

    In my header.php of my theme I replaced:

    <title><?php wp_title( ‘|’, true, ‘right’ ); ?></title>

    with this:

    <title><?php if(is_home()) { echo bloginfo(“name”); echo ” | “; echo bloginfo(“description”); } else { echo wp_title(” | “, false, right); echo bloginfo(“name”); } ?></title>

    This checks to see if the page is the home page, if it is, it displays the site title. If it is not, it displays the page or post title followed by “|” and then site title.

    I got the code from here.

    Also as a disclaimer, it is recommended to use a child theme, or else these changes will be erased when the theme is updated.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Site title on home page is different than all the others?’ is closed to new replies.