WordPress.org

Support

Support » Themes and Templates » Adding a png title to replace site link

Adding a png title to replace site link

Viewing 7 replies - 1 through 7 (of 7 total)
  • Moderator Michael

    @alchymyth

    Forum Moderator

    might be in header.php;

    a section similar to:

    <hgroup class="siteinfo">
    											<h1><a href="<?php ???? ?>" title="<?php ??? ?>"><?php bloginfo('name'); ?></a></h1>
    						<h2 class="alt"><?php bloginfo('description'); ?></h2>
    									</hgroup>

    Removing the tags from the page and replacing it with an image is a bad idea from an SEO perspective.

    Rather wrap the code in header.php in a div as follows:

    <hgroup class="siteinfo">
      <div id="branding">
        <h1><a href="http://174.122.106.66/~lindab" title="vannuysplating.com">vannuysplating.com</a></h1>
        <h2 class="alt">Van Nuys Plating Site</h2>
      </div>
    </hgroup>

    THen do the following in style.css:

    #branding {
      width: xxxpx; /* the width of your branding png */
      height: xxxpx; /* the height of your branding png */
      overflow: hidden; /* so the div contains its contents */
      background: transparent url('background.png') left top no-repeat;
      text-indent: -999em;
    }

    This sets the image you want as the branding as a background to the DIV and hides the text by moving it out of the browser window to the left, but Google and friends can still read it.

    Thanks…I’ll try it.

    The branding doesn’t seem to work.

    Also in header.php there is another hgroup block of text.

    Moderator Michael

    @alchymyth

    Forum Moderator

    Also in header.php there is another hgroup block of text.

    maybe you can post this here?
    http://codex.wordpress.org/Forum_Welcome#Posting_Code

    I pasted the header.php for the theme here

    http://pastebin.com/thBrVndx

    So nobody knows an easy way to insert a graphic title?

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Adding a png title to replace site link’ is closed to new replies.