Forums

Site name shows up wrong in Google (2 posts)

  1. jennsweb
    Member
    Posted 2 years ago #

    I created a custom header for a client that required part of the site's title to display in a smaller font than the other part. "The Law Office of" is enclosed in H3 tags and the words "Michael B. McCarthy" are enclosed in H1 tags. Now when Google displays the site, the headline reads "The Law Office Of" and doesn't include the second half of the title. Is it because of the tags? If so, is there a good fix for this?

    Thanks!

  2. alchymyth
    The Sweeper
    Posted 2 years ago #

    might not be good, but could work - for instance:

    <div id="header">
    <h1>fullname</h1>
    <h2>firstpartlarge</h2><h3>secondpartsmaller</h3>
    </div>

    and then define the style.css:

    #header h1 {text-indent:-9999px;}
    #header h2 {font-size:25px; display:inline;}
    #header h3 {font-size:15px; display:inline;}

    or just the way you did it for h1/h3 to get them lined up.

Topic Closed

This topic has been closed to new replies.

About this Topic