![]() |
|
|||||||
| Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
![]() |
|
|
LinkBack | Thread Tools | Display Modes |
|
|||
|
I would love it if I could specify image captions for the multimedia box on the Thesis Options page.
I'm using the image rotator to display images from my work, and it would be great if I could have a short caption that is integrated with the frame and changes with the image to explain what each image is. See http://grandall.org to see what I mean. |
|
|||
|
grandall: I see that you're already using the ALT tags for random images; you can make them your captions if you're willing to modify a core file.
Open lib/functions/multimedia_box_functions.php and find this: Code:
echo '<img ' . $images[$random_image]['class'] . 'src="' . $images[$random_image]['url'] . '" alt="' . $images[$random_image]['alt'] . '" />' . "\n"; Code:
echo '<p style="text-align: center; font-size: 0.786em;">' . $images[$random_image]['alt'] . '</p>' . "\n";
__________________
Rick Beckman, Kingdom Geek & Thesis Support Ninja (Forums Moderator) [ Thesis Manual | Help, my posts don't show up! ] Amazon Wishlist | My custom.css Get Thesis! | Earn Cash as a DIY Affiliate! |
|
|||
|
grandall: That's entirely up to Chris, but I'm glad that the posted code works for you!
__________________
Rick Beckman, Kingdom Geek & Thesis Support Ninja (Forums Moderator) [ Thesis Manual | Help, my posts don't show up! ] Amazon Wishlist | My custom.css Get Thesis! | Earn Cash as a DIY Affiliate! |
|
|||
|
So I can't believe that I don't know the answer to this, but how are you adding alt text to each image? I would normally insert it in the html when I embed an image in a page, but it seems like what you're saying is that you've saved each image with an embedded alt text attribute...Is that true? If so, how?
Thanks much - I know this is off-topic for Thesis, but I want to use this caption technique but can't figure out where to put the alt-text. . . Thanks! |
|
|||
|
Grandall, how did you incorporate Amazon store directly into your blog? Looks great!
|
|
|||
|
Could we go even further with this? The photos I've put in my rotator are from Flickr. I'd love to be able to display the photo in the rotator, and have a caption below it linking to the original Flickr photo page.
Ideas, anyone? |
|
|||
|
Editing core files is in no way encouraged at this point, though if you want to brave it, open up /lib/functions/multimedia_box_functions.php and find this:
PHP Code:
PHP Code:
PHP Code:
PHP Code:
__________________
Rick Beckman, Kingdom Geek & Thesis Support Ninja (Forums Moderator) [ Thesis Manual | Help, my posts don't show up! ] Amazon Wishlist | My custom.css Get Thesis! | Earn Cash as a DIY Affiliate! |
![]() |
| Thread Tools | |
| Display Modes | |
|
|