-
-
Hi,
Is there a way to show the entire blogposts in www.site.com/blog instead of an excerpt of 3 lines of each blogposts?
I am not able to find the option in Specular settings.
thanks!
-
Hello,
You will need to edit theme files for that. Please go to file includes\view\blog\loop-grid.php, and find these lines(168):
<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 with these:
<div class="text"> <?php if($post_format == 'video' || $post_format == 'audio') echo codeless_text_limit(get_the_content(), 20); else echo codeless_text_limit(get_the_content(), 999999); ?> </div>
Best regards!
-
Hi Mihaila,
I have tried replacing the code as you suggested but nothing happen. there is still an excerpt for every blogpost, 3 lines each.
Let me know if you want to know the blog URL for my site so you can have a look.
thanks!
-
Hello,
What blog style have you selected? If you have simple blog style then you must edit the file loop-index.php. Find these lines:
<div class="text"> <?php if(is_single()){ do_shortcode(the_content()); }else{ if($post_format == 'video' || $post_format == 'audio') echo do_shortcode(codeless_text_limit(get_the_content(), 60)); else echo do_shortcode(get_the_excerpt()); } ?> </div>
and replace with:
<div class="text"> <?php if(is_single()){ do_shortcode(the_content()); }else{ if($post_format == 'video' || $post_format == 'audio') echo do_shortcode(codeless_text_limit(get_the_content(), 60)); else echo do_shortcode(get_the_content()); } ?> </div>
Best regards!
- This reply was modified 9 years, 7 months ago by Ruco.
-
Hi Ruco,
thanks for your message.
I have tried your suggestion and it works. Blog posts lose the formatting in the blog index though so I think I’ll switch to the previous set up, with only some excerpt lines for each blogpost.
About that:
– do you know how can I have 5 lines instead of 3 for each blogpost in the blog index?
– I need the button ‘read more’ localized in Italian. Can you suggest how to proceed?
thanks!
-
Hello,
To allow more words to show, please edit the above code to this:
<div class="text"> <?php if(is_single()){ do_shortcode(the_content()); }else{ if($post_format == 'video' || $post_format == 'audio') echo do_shortcode(codeless_text_limit(get_the_content(), 60)); else echo do_shortcode(codeless_text_limit(get_the_excerpt(), 60)); } ?> </div>
I the same file, find this line:
<a href="<?php echo get_permalink() ?>" class="btn-bt <?php echo esc_attr($cl_redata['overall_button_style'][0]) ?>"><span><?php _e('Read More', 'codeless') ?></span><i class="moon-arrow-right-5"></i></a>
Translate the “Read more” here.Best regards!
-
You must be logged in to reply to this topic.