• Resolved Labrador777

    (@labrador777)


    Hi,
    I can’t get the credit to appear under a photo installed in an article as a thumbnail ; I have filled all fields of the thumbnail option (title, legend, alternative text, description) none of them appear under the photo.
    I do prefer this option (thumbnail)rather thani,stalling a media because of the very elegant drop shadow I get around the phto.
    Could you help?
    Thanks in advance.

    https://wordpress.org/themes/justwrite/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Theme Author acosmin

    (@acosmin)

    The only way you can do that is by opening ../post-templates/content-single.php, find:

    the_post_thumbnail( 'ac-sidebar-featured' );

    replace it with:

    the_post_thumbnail( 'ac-sidebar-featured' );
    $attachment_id = get_post_thumbnail_id();
    $tmb_meta = wp_prepare_attachment_for_js( $attachment_id );
    echo $tmb_meta['caption'];

    This will work with the featured post thumbnail in single view, you only need to add a caption to that image.

    Always remember to use a child theme.

    Thread Starter Labrador777

    (@labrador777)

    Hi,
    I have applied all your recommended changes and it works perfectly.
    Many thanks for your prompt answer.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Juswrite – photo credit missing in thumbnail’ is closed to new replies.