- August 7, 2014 at 4:12 pm #4081
is there a way to add captions to all images (e.g. for image credits)?
Best regardsAugust 7, 2014 at 11:54 pm #4085
Hi, 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 #4120
Hi, I would like to add captions on the following modules / pages / post types
August 11, 2014 at 1:03 am #4131
- Latest / Related Posts
- Image Post
-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; ?>">
update it to:
<div class="fade_wrap"> <a class="lightbox" data-rel="post<?php the_ID(); ?>" href="<?php echo $thumb_src_full; ?>" title="<?php echo get_the_title(); ?>">
-blog, titles already there while mouse over images.
BestAugust 12, 2014 at 2:38 pm #4167August 12, 2014 at 2:39 pm #4168August 13, 2014 at 9:08 am #4181
Hi, 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 #4189
No, 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 #4202
Hi, sorry for me misunderstand you. you can check the code here: functions/functions-view-module.php line 256 or about.
You must be logged in to reply to this topic.