Viewing 2 posts - 1 through 2 (of 2 total)
-
AuthorPosts
-
June 18, 2013 at 1:58 pm #24970
Hi everyone,
Is there a way to add the title of a post under the featured image showed in the “Related Posts” section? I love the way Enfold deals with related posts, but I think that possibility will give a better user-experience to my visitors.
Thank u!
Agustin
June 19, 2013 at 12:57 pm #125350Hi! I understood finally how related-posts.php works and was able to do it by myself. I write here what I did in case someone wants also the titles under the featured images.
In related-posts.php I added this line:
I searched for:
Code:$output .= “<div class=’$post_class $extra relThumb relThumb”.$count.” post-format-“.$format.” related_column’>n”;
$output .= ” ID).”‘ class=’relThumWrap noLightbox’>n”;
$output .= ” <span class=’related_image_wrap’ data-avia-related-tooltip='”.$related_post->post_title.”‘>”;
$output .= $image;
$output .= ” <span class=’related-format-icon avia-font-entypo-fontello {$extra_class}’><span class=’related-format-icon-inner’>”.$avia_config[‘font_icons’][$format].”</span></span>”;
$output .= ” </span>”;
$output .= ” “;
$output .= “</div>”;and added this line before the last line:
Code:$output .= ” ID).”‘>”.$related_post->post_title.”“;Right now, it looks like that:
Code:$output .= “<div class=’$post_class $extra relThumb relThumb”.$count.” post-format-“.$format.” related_column’>n”;
$output .= ” ID).”‘ class=’relThumWrap noLightbox’>n”;
$output .= ” <span class=’related_image_wrap’ data-avia-related-tooltip='”.$related_post->post_title.”‘>”;
$output .= $image;
$output .= ” <span class=’related-format-icon avia-font-entypo-fontello {$extra_class}’><span class=’related-format-icon-inner’>”.$avia_config[‘font_icons’][$format].”</span></span>”;
$output .= ” </span>”;
$output .= ” “;
$output .= ” ID).”‘>”.$related_post->post_title.”“;
$output .= “</div>”;Have a nice day ;)
-
AuthorPosts
Viewing 2 posts - 1 through 2 (of 2 total)
- The topic ‘Title under featured image in Related Posts’ is closed to new replies.