Viewing 5 replies - 1 through 5 (of 5 total)
  • That should work; you’ll probably want to remove the h2 tags, as well, though if any css positioning or whatnot is occuring to them you’ll need to modify this in your style.css to affect the img element instead.

    This is the code I’ve used to add images to my sidebar:

    <h2><?php _e(‘<img src=”/wp-content/images/title_about.gif” border=”0″ alt=”about” />’); ?></h2>

    Although I’m sure, like Kafkaesqui said, just adding the image link will work fine…and is a lot cleaner!

    Thread Starter doctorbean

    (@doctorbean)

    Thanks people I will attempt this action.

    you could also declare it in the css.

    #sidebar h2 {background-image: url(fullpath);

    might not be practical if you have different h2s in the sidebar. The could be classed but… The benefit is that you could put text in there that screen readers and cell phones could use.

    google ‘image replacement technique’ for more.

    Thread Starter doctorbean

    (@doctorbean)

    OK ive added the graphic but its just sat on the default header box.How do I remove that,and all so how do I reallign the graphic.

    Please help

    Alexander

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Sidebar (Headers) replacing with graphics’ is closed to new replies.