Viewing 1 reply thread
You must be logged in to reply to this topic.
In ‘Full Blog’ and ‘Post Masonry Grid’, how do I control the length of the excerpt displayed? Thanks :)
Hello,
Sorry for the late reply.
-What type of blog are you using? To change the “Full Blog” excerpt text length, you have to edit one of these files:
includes/view/blog/loop-grid.php
includes/view/blog/loop-index.php
includes/view/blog/loop-second-style.php
includes/view/blog/loop-timeline.php
Find these lines:
<div class="text">
<?php if($post_format == 'video' || $post_format == 'audio')
echo codeless_text_limit(get_the_content(), 20);
else
echo get_the_excerpt();
?>
</div>
replace this line: echo get_the_excerpt();
with this echo codeless_text_limit(get_the_excerpt(), 20);
The value “20” means that there will be displaying up to 20 words from excerpt. Increase it to show more text.
-The “Post Masonry Grid” is a Visual Composer element not overwritten by theme code. So to edit it’s excerpt text length, you have to edit the plugins files.
Best regards!
You must be logged in to reply to this topic.