-
-
Hi.
How to change blog excerpt length on front page.
We won’t to show any excerpt.
Now we use Folie child theme, setting Appearance >Customize > blog>Enable auto excerpt is off and excerpt length is zero.
However all texts are shown on the front page.
Thank you.
M
-
Hello,
Normally if you set the excerpt is off you will see the full content. In case you want to remove all the content below the title you have to follow the steps below:
First you have to set the excerpt option ON and edit the file
themes/folie/template-parts/blog/style-default.php
<?php get_template_part( 'template-parts/blog/formats/content', get_post_format() ) ?>
comment the line above or delete it
<?php //get_template_part( 'template-parts/blog/formats/content', get_post_format() ) ?>
Save the file and the whole content will be disabled.
Regards!
-
-
Hello,
Can you check out this PHP file instead: wp-content/themes/folie/template-parts/entry-content/
// Display excerpt if auto excerpts are enabled in the admin if ( codeless_get_mod( 'blog_excerpt', true ) && ( ! is_single() || codeless_get_from_element('blog_from_element', false) ) ) : if( get_the_excerpt() == '' ){ $content = get_the_content(); $content = preg_replace("~(?:\[/?)[^/\]]+/?\]~s", '', $content); echo wp_trim_words( $content, codeless_get_mod('blog_excerpt_length', 40), ' [...]' ); } else the_excerpt();
replace with:
// Display excerpt if auto excerpts are enabled in the admin if ( codeless_get_mod( 'blog_excerpt', true ) && ( ! is_single() || codeless_get_from_element('blog_from_element', false) ) ) : if( get_the_excerpt() == '' ){ $content = get_the_content(); $content = preg_replace("~(?:\[/?)[^/\]]+/?\]~s", '', $content); $content = ''; } else $content = '';
Let us know.
Regards!
-
-
You’re welcome :)
If you like our theme and support, leave us a rating on Themeforest, it’s very important for us :)
https://themeforest.net/downloads
Thank You so much
-
You must be logged in to reply to this topic.