• Resolved Number_6

    (@number_6)


    Hi,
    I’m using a theme called Floki and in the header it has:
    <title><?php if (is_home () ) bloginfo('name'); else wp_title( '|', true, 'right'); ?></title>

    On the homepage this outputs: “Eclectic Vibrations Radio” (the blog name)
    An example of another page: “Dan Gilroy | People |”

    After the separator I’d imagine the name of the blog should ordinarily follow. Think it’s something to do with my installation (which is 1.5 years old) being messed up.

    How could I manually insert the name within that “else”?

    Cheers

Viewing 2 replies - 1 through 2 (of 2 total)
  • Not sure why that’s not working for you. I just tested it and it worked just the way you wanted for me. In fact, it actually output exactly the same this:

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

    Which was what my theme had before I tested yours. But if that’s not working for you, either, try this:

    <title><?php if (is_home () ) {bloginfo('name'); }
    else { wp_title( '|', true, 'right'); bloginfo('name');} ?></title>
    Thread Starter Number_6

    (@number_6)

    Thanks! That worked. No idea why it didn’t work when I tried adding bloginfo(‘name’) to the end, myself. It originally output the blog title twice on homepage.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Changing tag’ is closed to new replies.