Home › Forums › Bee WordPress Theme › Captions for all images
- This topic has 8 replies, 2 voices, and was last updated 11 years, 10 months ago by
Johnny.
-
AuthorPosts
-
August 7, 2014 at 4:12 pm #4081
maciana
ParticipantHi,
is there a way to add captions to all images (e.g. for image credits)?
Best regards
August 7, 2014 at 11:54 pm #4085Johnny
ParticipantHi, could you please show me which page and which image you want to add caption? a screenshot would be better.
Thank youAugust 10, 2014 at 3:47 pm #4120maciana
ParticipantHi, I would like to add captions on the following modules / pages / post types
- Latest / Related Posts
- Blog
- Image Post
August 11, 2014 at 1:03 am #4131Johnny
ParticipantHi,
-image post, open file single-template.php and find this:
<?php echo get_the_post_thumbnail(get_the_ID(), 'full'); ?>
update it to:
<?php echo get_the_post_thumbnail(get_the_ID(), 'full', array('title' => get_the_title(get_post_thumbnail_id()))); ?>
-latest posts, open file functions/functions-part4.php and find this:<div class="fade_wrap"> <a class="lightbox" data-rel="post<?php the_ID(); ?>" href="<?php echo $thumb_src_full[0]; ?>">update it to:
<div class="fade_wrap"> <a class="lightbox" data-rel="post<?php the_ID(); ?>" href="<?php echo $thumb_src_full[0]; ?>" title="<?php echo get_the_title(); ?>">-blog, titles already there while mouse over images.
BestAugust 12, 2014 at 2:38 pm #4167maciana
ParticipantAugust 12, 2014 at 2:39 pm #4168maciana
ParticipantAugust 13, 2014 at 9:08 am #4181Johnny
ParticipantHi, did you mean you want using previous post link functions to implement image’s caption? if this is true, I am afraid you can not do that, also I can not help you abut this.
Thank youAugust 13, 2014 at 2:04 pm #4189maciana
ParticipantNo, I meant that the function described works for the latest post module and the single page images, but it doesn’t work for the blog page (masonry). I would like the caption to be displayed under the image, just like on the latest post (s. image).
If you tell me where I can modify how the image post on the blog page are displayed, I can go from there.
Thanks!
August 14, 2014 at 3:31 am #4202Johnny
ParticipantHi, sorry for me misunderstand you. you can check the code here: functions/functions-view-module.php line 256 or about.
Best -
AuthorPosts
- You must be logged in to reply to this topic.
