• Hi all, i need help with my sidebar. The home page is working however my other pages are having trouble with the sidebar image. The images are not showing.

    Sorry if I fail to explain it properly. 🙁

Viewing 4 replies - 1 through 4 (of 4 total)
  • You need absolute path for image sources.

    So instead of:

    <img alt="OpeningLine" src="OpeningLineAnimated.gif"/>

    try

    <img alt="OpeningLine" src="http://OpeningLineAnimated.gif"/>
    or to make the code dynamic, or in case you change domain name to work locally:

    <img alt="OpeningLine" src="<?php bloginfo('url') ;?>OpeningLineAnimated.gif"/>

    By the way, where do you upload your images? Don’t you have an images folder in template directory?

    Thread Starter kyohoney

    (@kyohoney)

    Hi fldtrace,

    Thanks for helping me but i still couldn’t get the codes right. I do have the images in the template directory. Sighhh.. I’m sure i did something wrong somewhere just not sure where.

    Thanks again.

    the dynamic code from above is not good as I missed a slash /

    If you have the images in your template directory you can specify the path to a specific image like that:

    <img alt=”OpeningLine” src=”<?php bloginfo(‘template_directory’);?>/Images/OpeningLineAnimated.gif”/>

    In path from above, I assumed that you store that specific image, in an folder called “Images”

    Thread Starter kyohoney

    (@kyohoney)

    got it. thank you so much. 🙂

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

The topic ‘Help Needed’ is closed to new replies.