Forums

Using h1 tags to display site info in the top browser bar? (11 posts)

  1. nitch
    Member
    Posted 8 months ago #

    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

  2. samboll
    moderator
    Posted 8 months ago #

    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!

  3. t31os
    Member
    Posted 8 months ago #

    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...

  4. nitch
    Member
    Posted 8 months ago #

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

  5. nitch
    Member
    Posted 8 months ago #

    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

  6. t31os
    Member
    Posted 8 months ago #

    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?

  7. t31os
    Member
    Posted 8 months ago #

    You can't add HTML elements into the TITLE line...

  8. nitch
    Member
    Posted 8 months ago #

    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

  9. samboll
    moderator
    Posted 8 months ago #

    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/

  10. nitch
    Member
    Posted 8 months ago #

    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?

  11. craiger
    Member
    Posted 7 months ago #

    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.

Reply

You must log in to post.

About this Topic

Tags