Linking an image in wordpress theme

Adding an image into a template page such as you home page this code helps to look for the image relative to where your template/theme files are. So it will look in your themes image folder for the image.
use template directory function

<img src=”/images/imagename.jpg” title=”Title text” alt=”Alt text” />

Advertisements

Tutorial – Simple Toggle with CSS & jQuery

One more great tutorial from sohtanaka.com for a show hide toggle. For a smooth open and close.

http://www.sohtanaka.com/web-design/easy-toggle-jquery-tutorial/

I used it on a FAQs page but had to get rid of the href=# and just left the A tags without anything to link too because every time I clicked to open the page would jump to the top. This was the only issue I could find. Even works in IE6.