Support » Themes and Templates » Using h1 tags to display site info in the top browser bar?

  • I want to display my tagline next to my site title in the browser window. I know I need to use h1 tags to do this but have no idea how/where?

    Could someone provide me the code and let me know if I place this in the header, stylesheet, or somewhere else?

    I’m running 2.7 @ nitch.ca with the Decimus theme

    Thanks

Viewing 10 replies - 1 through 10 (of 10 total)
  • themes do it differently, but…
    look in your theme’s style.css for the appropriate spot – likely this is where it is controlled

    look for something like

    #logo h2 {
    	float: right;
    	padding: 98px 0 0 0;
    	font-weight: normal;
    	font-size: 16px;
    	color: #FFFFFF;

    play with font size
    make backups 1st!

    Adjust the line samboll posted above, just change the float to left..

    #logo h2 {
    	float: left;
    	padding: 98px 0 0 0;
    	font-weight: normal;
    	font-size: 16px;
    	color: #FFFFFF;

    Will float the tagline up next to the logo/title…

    Thread Starter nitch

    (@nitch)

    Thanks – but where do I place the copy into this code? I’m trying to place my tagline.

    Thread Starter nitch

    (@nitch)

    I actually checked and this is the code for the header. I’m not looking to add h1 tags to the site, but rather to the browser.
    I want to have this information in the title bar of the browser – the line that on this page says “WordPress > Support > Using h1 tags to display site info in the top browser bar?”

    Could you please assist

    The bit posted above is from your style.css, you just need to edit this line….

    float: right;

    changing it to…

    float: left;

    So open that file and find…

    #logo h2 {
    	float: right;
    	padding: 98px 0 0 0;
    	font-weight: normal;
    	font-size: 16px;
    	color: #FFFFFF;
    }

    Then edit..

    float: right;

    changing it to…

    float: left;

    Make sense?

    You can’t add HTML elements into the TITLE line…

    Thread Starter nitch

    (@nitch)

    this is my header. I’m not looking to edit the header. I clearly don’t know how to describe what I want to do.

    I want to edit the COPY in the top line of the BROWSER! not the position of my header copy. Can someone help??

    Again, the above code does not affect what I’m looking to change.

    Thank you

    well…sorry we both jumped to the same thinking

    all you need is a plugin and you can do that – customize title bar – on any page or post – including home
    http://www.netconcepts.com/seo-title-tag-plugin/

    Thread Starter nitch

    (@nitch)

    Thanks samboll- I’ve installed it and set it up.

    Should it be displaying when I visit my homepage immediately or do I have to wait?

    craiger

    (@craiger)

    Nitch,

    Check your theme’s header.php file for a line of code similar to this:

    <title><?php wp_title(”); ?><?php if(wp_title(”, false)) { echo ‘ :’; } ?> <?php bloginfo(‘name’); ?></title>

    Add this:

    <?php bloginfo(‘description’); ?>

    Example:

    <title><?php wp_title(”); ?><?php if(wp_title(”, false)) { echo ‘ :’; } ?> <?php bloginfo(‘name’); ?> : <?php bloginfo(‘description’); ?>
    </title>

    Make sure you have entered your Tagline on the Settings > General Settings page.

    If you are using the seo-title-tag, it will override what ever you have in the Blog Title field from the General Settings page, but it does not display the tagline.

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘Using h1 tags to display site info in the top browser bar?’ is closed to new replies.