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

    #419637

    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?

    Regards,
    Elliott

    #419642

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

    Thanks!

    #420567

    Hi!

    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!
    Elliott

    #421002

    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

    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…

    #421626

    Hey!

    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!
    Elliott

    #421637

    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?

    https://app.box.com/s/u5uedk5rrerjp1udom6jaky24uegpnvj

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

    Thanks!

    #422162

    Hi!

    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

Viewing 8 posts - 1 through 8 (of 8 total)
  • You must be logged in to reply to this topic.