• I want to add a few graphical links to my sidebar. I am using the Impact theme.

    <!– START NEW AREA –>
    <li id=”newarea”><h2><?php _e(‘New Area’); ?></h2>

      <img src=”path to image” border=0>

    <!– END NEW AREA –>

    “New Area” shows up fine. No image, however, displays (yes, the url is correct).

    What am I doing wrong?

Viewing 3 replies - 1 through 3 (of 3 total)
  • You probably have an incorrect searh path for your image.
    A common first time error is to give a relative URL and make it relate to the theme directory.
    Let me give an example of a corrct path.

    If the root of your blog is at http://yourdomain/blog and your image is //yourdomain/images/someimage.jpg, your relative image url shoul be:
    `<img src=”/images/someimage.jpg” />
    i.e. relative to your web root.

    Hope it helps !

    Thread Starter officialscorer

    (@officialscorer)

    I figured out my stupidity. Yikes!

    Thank you for the help. While that wasn’t it, it caused me to look at something again. D’oh!

    Well, petit, you helped me. I, too, had a problem with an image not showing up in the sidebar. The path to the image was wrong.

    I initially added my image to the images folder that was already in my theme folder. My theme template uses an image in the header, hence the folder. But getting to this location is a big long path, so I created a new “myimages” folder under mydomain, put the image there, used your

    <img src="/images/someimage.jpg" />

    and Voila! Success. After several hours of failure on my own.

    I’m left to wonder, though, about the paths to things like that header image. I know the very basics of HTML, XHTML, and CSS, but have no clue about PHP. I’m lost on those paths.

    It’s great to be able to search this forum for answers to what I’m sure are common newbie problems. I appreciate the oblique assistance!

    Cheers.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Adding to Sidebar’ is closed to new replies.