PDA

View Full Version : How to display title.


Tom K
05-06-2008, 02:20 AM
How do I get the title of the photograph to display on the page such as is done on this superb photoblog: http://www.andrewor.com/

I have to rollover my photos to see the title as can be seen here: http://www.tomkaszuba.com/index.php

Thank you,
Tom K

dhdesign
05-06-2008, 10:39 AM
You need to add the <IMAGE_TITLE> tag to your image_template.html file where you would like it to be displayed.

You are using the Horizon template, right? If so, you can open image_template.html and insert the tag as follows to get the image title below the image:

<div id="photobox">
<a href="index.php?showimage=<IMAGE_PREVIOUS_ID>">
<img src="images/<IMAGE_NAME>" alt="<IMAGE_TITLE>" title="<IMAGE_TITLE>" width="<IMAGE_WIDTH>" height="<IMAGE_HEIGHT>" id="photo" />
</a>
<p><IMAGE_TITLE></p>
</div> <!-- /photo -->


If you'd like it displayed somewhere else, let me know and I'll take a look at the code again.

Tom K
05-06-2008, 03:00 PM
Thank you very much dhdesign. It worked like a charm. The only thing I did differently was to change the p tags around the image_title to center tags.

For some reason the p tag put the title way over to the left and not under the photo. Now......if there was a way to place the title directly under the photo on the left hand side I would be interested in doing that if possible.

Again....many thanks to you for the expertise you have provided me.
Tom K.
www.tomkaszuba.com