-
AuthorPosts
-
March 27, 2015 at 2:20 am #419006
Hi there, I’ve searched everywhere for how to make this work but I can’t seem to get the titles and captions to show for featured images. Please help.
http://www.theburningear.com/2015/03/waterstrider-nowhere-now/
Thank you!
March 27, 2015 at 10:01 pm #419637Hi Brandon!
Are you trying to display the title and captions beneath the featured images in your single post view? Or are you trying to get them to display when you open the image in the magnific popup?
Regards,
ElliottMarch 27, 2015 at 10:04 pm #419642Hi Elliott, I would like to know how to do both so I can chose which is more appropriate.
Thanks!
March 30, 2015 at 4:22 pm #420567Hi!
1. Open up /enfold/includes/loop-index.php and around line 110 you should see this.
if(!empty($before_content))
Add this above it.
$thumbnail_id = get_post_thumbnail_id($post->ID); $thumbnail_image = get_posts(array('p' => $thumbnail_id, 'post_type' => 'attachment')); if ($thumbnail_image && isset($thumbnail_image[0])) { echo '<span>'.$thumbnail_image[0]->post_excerpt.'</span>'; }
2. That is more difficult but you can get started with it here, https://kriesi.at/support/topic/social-sharing-on-galleries-enfold-v-3-0-2/.
Cheers!
ElliottMarch 31, 2015 at 9:13 am #421002Hi Elliott,
1. This shows some text but it looks terrible and unstyled. From reading other comments it seems that the featured image caption should show by default, right? Why is it not showing for me? You can see inthis post there is text in title, caption, and description for featured image but you cant see it anywhere
http://www.theburningear.com/2015/03/brand-new-jesus-christ-hasta-remix/
Is answer #2 meant for me? I didn’t have a question #2 so I’m a bit confused…
March 31, 2015 at 10:30 pm #421626Hey!
It’s not supposed to display by default. Add the code back in and then take a screenshot highlighting exactly how your wanting to style it so we can get a better idea.
Cheers!
ElliottMarch 31, 2015 at 11:10 pm #421637Ok thanks. Here is a screenshot. I’d love to have the text be centered below the image, and with not so much padding. Closer to the image, and farther from the header. Also, is it possible to have a link in this caption?
https://app.box.com/s/u5uedk5rrerjp1udom6jaky24uegpnvj
I will also want to add other css styling later (background, border, etc)
Thanks!
April 1, 2015 at 9:18 pm #422162Hi!
Well that’s how it should be displaying if you did the edit in my second post. I still don’t see it your site though. Add it back in so we can see what it’s doing.
Yes, you can add HTML and links, etc etc, in the caption field.
Best regards,
Elliott -
AuthorPosts
- You must be logged in to reply to this topic.