Join the Soledad Facebook Users Group here
for Share, assistance, discussion, and Updates related to Soledad WordPress Theme.

If you can't create a new ticket - you can send us an email via our contact form and we will get back to you.

Okay
  Public Ticket #3452361
Excerpt lenght
Closed

Comments

  •  1
    Harsh started the conversation

    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!

    Attached files:  video1367482376.mp4
      Screenshot (27).png
      Screenshot (28).png
      Screenshot (29).png

  •  2,610
    PenciDesign replied

    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 replied privately
  •  2,610
    PenciDesign replied

    Hi,

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

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

    Regards,
    PenciDesign.


  •  1
    Harsh replied

    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?

  •  2,610
    PenciDesign replied

    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.




  •  1
    Harsh replied

    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?

  •  2,610
    PenciDesign replied

    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.


  •  1
    Harsh replied

    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.

  •  2,610
    PenciDesign replied

    Hi,

    Please send me the site URL.

    Regards,
    PenciDesign.


  •  1
  •  1
    Harsh replied

    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.

    Attached files:  video1010141946.mp4

  •  2,610
    PenciDesign replied

    Hi,

    Please download the attachment file and then overwrite it to:

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


    Regards,
    PenciDesign.


    Attached files:  content-list.php.zip

  •  1
    Harsh replied

    It worked!

    Thanks for the help guys!