Skip to content
Public Ticket #25988

Excerpt lenght

Conversation thread

Harsh replied

Customer Reply

It worked!

Thanks for the help guys!

PenciDesign Supporter replied

Staff Reply

Hi,

Please download the attachment file and then overwrite it to:

wp-content/themes/soledad/content-list.php

Regards,
PenciDesign.


Harsh replied

Customer Reply

Hello, 

I have just updated the theme to 8.4.0 and the same thing has started to happened again on the website where you guys made changes. 

I have kept the excerpt length of the post to 20 for category pages but once I scroll down and click on "Load More Post", the posts that are loaded afterward have a very big excerpt length. 

How can I control this and set the excerpt length to a default value of 20 for all category pages?

You may check on https://inlinedfitness.com/category/food/ ,  https://inlinedfitness.com/category/technology/travel/

I also have attached the video of the same. 

Please help me fix this once and for all.

PenciDesign Supporter replied

Staff Reply

Hi,

Please send me the site URL.

Regards,
PenciDesign.


Harsh replied

Customer Reply

Hello,

I tried replacing the code with the one that you provided, but it did not work. Please guide me through the process so that I could fix the same issues on my other websites as well.

PenciDesign Supporter replied

Staff Reply

Hi,

Please go to Appearance → Customize → Posts Layouts: you can change the excerpt length at the "Standard and Classic" and "Other Layouts" sections.

Regards,
PenciDesign.


Harsh replied

Customer Reply

Thank you so much for the help!

I also need to know that if in any case, I have to increase or decrease the word count or length of the excerpt then how do I do that?

PenciDesign Supporter replied

Staff Reply

Hi,

Please open the file I sent, find:

<?php if( ! get_theme_mod( 'penci_excerptcharac' ) ){
    the_excerpt();
} else {
    $excerpt_length = get_theme_mod( 'penci_post_excerpt_length', 30 );
    penci_the_excerpt( $excerpt_length );
}
?>

Replace with:

<?php
$excerpt_length = get_theme_mod( 'penci_post_excerpt_length', 30 );
penci_the_excerpt( $excerpt_length );
?>


Regards,
PenciDesign.




Harsh replied

Customer Reply

Hello,

Please could you let me know what needs to be done to fix this issue so that I can fix it on my other websites as well?

PenciDesign Supporter replied

Staff Reply

Hi,

I've fixed this issue by updating the content on the following file:

wp-content/themes/soledad/content-list.php

Regards,
PenciDesign.


PenciDesign Supporter replied

Staff Reply

Hi,

For this case, please send me your WordPress admin account in a PRIVATE reply.
I'll log in and try to help you check this problem.

Regards,
PenciDesign.



Harsh started the conversation

Conversation Start

Hello, 

I have kept the excerpt length to 20 for category pages but once I scroll down and click on "Load More Post", the posts that are loaded afterward have a very big excerpt length. 

How can I control this and set the excerpt length to a default value of 20 for all post category format?

I have attached a video and screenshots for your reference.

Please help!

Want to join this conversation or access attachments? Sign in first.