WordPress.org

Ready to get started?Download WordPress

Forums

Tagline in Browser Window (9 posts)

  1. Obstructionist
    Member
    Posted 6 years ago #

    This is probably really easy and simple, but how do I get my blog's headline to appear in the browser window's top bar (i.e. next to the title).

  2. jrothe
    Member
    Posted 6 years ago #

    Did you go and enter the title of the blog in the options? Or are you talking about specific topic headings?

    WP Admin > Options > General > Weblog Title

  3. Obstructionist
    Member
    Posted 6 years ago #

    Yes the title and tagline are written in options. And the the blog title appears in the browser's top bar, but I also want the tagline to be in the browser's top bar. There's no option for that.

  4. shadow
    Member
    Posted 6 years ago #

    <title><?php bloginfo('name'); ?> | <?php bloginfo('description');?></title>

    Does that work?

  5. Obstructionist
    Member
    Posted 6 years ago #

    I added it into the Header.php:

    <blockquote><meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>; charset=<?php bloginfo('charset'); ?>" />
    <title><?php if( is_search() ) { $ser = $_GET['s']; ?><?php _e('Search'); ?><?php echo " &quot;" . wp_specialchars($ser, 1) . "&quot;"; } ?><?php wp_title(''); ?><?php if( ! is_home() ) { ?> | <?php } ?><?php bloginfo('name'); ?><?php bloginfo('description'); ?></title></blockquote>

    But it still didn't work. Is there another file I should be hacking?

  6. whooami
    Member
    Posted 6 years ago #

    why do you have that stuff inside blockquote tags?? thats not proper (anything).

  7. shadow
    Member
    Posted 6 years ago #

    I think this may work by itself,

    <title><?php bloginfo('name'); ?> | <?php bloginfo('description');?></title>

    so the description call is possible.

    If you try that by itself, that will eliminate that part of the problem. And then if it works, the next step is to sort out your conditional calls - which will involve help from a far more knowledgeable person than myself.

  8. Ruzie
    Member
    Posted 6 years ago #

    Hello... I'm having this same problem. It was not a problem when I was using WP2.5 for a different site. But with my new site and with WP2.6 the tagline that I typed in did not appear at the browser.

    Am I supposed to put this code at Header.php?
    <title><?php bloginfo('name'); ?> | <?php bloginfo('description');?></title>

    But where exactly in the Header.php code?

    Appreciate your help very much.

    http://savvyhomemaker2u.com/

  9. Roy
    Member
    Posted 6 years ago #

    "bloginfo" is in your header.php. I suggest you replace the line that word is in with the code given above by Shadow.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags