Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
  • #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.

    Thank you!


    Hi 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?



    Hi Elliott, I would like to know how to do both so I can chose which is more appropriate.




    1. Open up /enfold/includes/loop-index.php and around line 110 you should see this.


    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,



    Hi 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

    Is answer #2 meant for me? I didn’t have a question #2 so I’m a bit confused…



    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.



    Ok 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?

    I will also want to add other css styling later (background, border, etc)




    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,

Viewing 8 posts - 1 through 8 (of 8 total)

You must be logged in to reply to this topic.