Viewing 2 reply threads
You must be logged in to reply to this topic.
Hello,
in my blog post I am using the ‘excerpt’ field because otherwise, the auto-excerpt was catching the h2-h3 tags of the Table Of Content used at the beginning of each post. You can see here that each item gets a different size:
https://monosnap.com/file/JkFVtNl7Gk98ud6VRNFvCRwJK3Ra4O
is there a way to truncate the excerpt length to a fixed value of chars, so the items will all have the same size in the /blog/ page?
Thanks!
Hello,
Please edit the file ‘specular/includes/view/blog/loop-grid.php’. You can access this file also at WP dashboard -> Appearance -> Editor.
<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>
with this:
<div class="text">
<?php
echo codeless_text_limit(get_the_excerpt(), 20);
?>
</div>
You can change the ’20’ with the value you want.
Best regards!
You must be logged in to reply to this topic.