WordPress.org

Ready to get started?Download WordPress

Forums

Adding a png title to replace site link (8 posts)

  1. knightmoon
    Member
    Posted 1 year ago #

    http://174.122.106.66/~lindab/

    In the home page there is an H1 link that says vannuysplating.com
    And another below that isn't a link.

    I want to remove both and put in a .png title.
    Where and how would I do this?

  2. alchymyth
    The Sweeper & Moderator
    Posted 1 year ago #

    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>
  3. Max
    Member
    Posted 1 year ago #

    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.

  4. knightmoon
    Member
    Posted 1 year ago #

    Thanks...I'll try it.

  5. knightmoon
    Member
    Posted 1 year ago #

    The branding doesn't seem to work.

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

  6. alchymyth
    The Sweeper & Moderator
    Posted 1 year ago #

    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

  7. knightmoon
    Member
    Posted 1 year ago #

    I pasted the header.php for the theme here

    http://pastebin.com/thBrVndx

  8. knightmoon
    Member
    Posted 1 year ago #

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

Topic Closed

This topic has been closed to new replies.

About this Topic