• Hi I am new to WordPress theme development and looking for the best way to replace the h1 tag ( the bloginfo('name') one ) so that on all pages reflect this change. I am using Starkers as a starting point and going with a static homepage design instead of the standard blog format.

    Really appreciate any insight to this.

    Regards

Viewing 15 replies - 1 through 15 (of 15 total)
  • Can you be more specific?

    Are you talking about changing the H1 style so it reflects on all pages?

    Links and examples my help.

    Thread Starter TonyB67

    (@tonyb67)

    I want to replace the h1 with an image

    <h1 id='logo'>
    		<a>" title="<?php echo esc_attr(   get_bloginfo( 'name', 'display' ) ); ?>" rel="home"><img src='wp-content/themes/halfway-v-2/images/logo.jpg' alt="<?php bloginfo('name'); ?>" /></a>
    </h1>

    when I do this the image only shows up on the homepage and not the others instead I get a missing image icon in chrome and the h1 shows up in FF, seems like it can’t find the image?

    I’d have to see a link to your site in order to help.

    What it sounds like you should do though is made a CSS rule for H1 and do it from there. Is that what you are doing in..

    #logo {
    background-image:url('filename.gif');
    }
    Thread Starter TonyB67

    (@tonyb67)

    here is the link; http://halfwaytoavalon.com/test/
    the link is not working with what I am doing

    Thread Starter TonyB67

    (@tonyb67)

    still can’t find a solution =[

    I can’t see any problem on that site.

    Thread Starter TonyB67

    (@tonyb67)

    I want the h1 to be a link like it should be (if I didn’t use an image)

    Did you try the method that I suggested previously?

    Thread Starter TonyB67

    (@tonyb67)

    Yes, same results ={

    Can you publish an example on your site?

    Thread Starter TonyB67

    (@tonyb67)

    Not sure I know what you mean ? I will set it so it works on the homepage but it doesn’t work on the others

    Guess I dont understand the problem. Confused…

    Thread Starter TonyB67

    (@tonyb67)

    Okay now the homepage has what I want when you hover over halfway to avalon it is a link but the other pages it doesn’t find the image in wp-content/themes/halfway-v-2/images/logo.jpg not sure why, if I get the image to show up I lose the linking ?
    strange I notice you have the same problem on your site @esmi so I am not sure if that is something that is specific to WP ?
    But I have seen other WP sites that have replaced the h1 with an image ! lol
    well I have learned a few things today šŸ™‚

    Thread Starter TonyB67

    (@tonyb67)

    I’m confused too, lol this is my first theme and I really want it to come out the way I designed it to come out, the other problem I am having is the footer, I can leave it outside of my #wrap div and it works on all the pages except the homepage where it is calling my front_page.php page.
    I need to find a good book.

Viewing 15 replies - 1 through 15 (of 15 total)

The topic ‘h1 image replacment’ is closed to new replies.