If you have troubles since the update to WordPress 4.5 please read this post before opening a new thread.
February 13, 2012 at 9:37 am #9192February 16, 2012 at 10:05 am #63805
Any thoughts? I’ve added text to the “Title”, “Alternate Text”, “Caption” and “Description” fields but none of them appear in the lightbox. Hmm…February 18, 2012 at 3:40 am #63806February 18, 2012 at 4:48 am #63807
I have already tried modifying custom.js to read:
"theme": 'light_square', /* light_rounded / dark_rounded / light_square / dark_square */
I also tried modifying style.css just to make sure it’s not displaying white text on a white background:
So far I’ve only added Title/caption/description text to the “Public Market” photo in the photography section, so if you go there to look at it, test with that one.
Thanks!February 18, 2012 at 9:07 am #63808
I think the problem is that Display doesn’t add the link title, etc. information to the image link. You can change the default title content in displayframeworkhelper_functionskriesi_build_image.php .search for following line:
and add any static text like:
You can also try to use functions like http://codex.wordpress.org/Function_Reference/get_the_title – I’m not entirely sure if it works out of the box or if you need to add an additional post id parameter.February 20, 2012 at 9:02 pm #63809
Thank you for the insight. The following worked to set the title of the image to the title of the post:
'title'=> get_the_title(),February 21, 2012 at 7:41 am #63810
The topic ‘Displaying Titles and Captions in PrettyPhoto’ is closed to new replies.