[Support request] Infinite Category

Home Forums Support [Support request] Infinite Category

Home Forums Support Infinite Category

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #2251585
    Simone

    Hi

    When I scroll my posts in one of my categories, it shows the whole post. What can I do to make it expert like my other articles? Here is an example of what I mean: https://cruisingsea.com/category/yacht-reviews/

    #2251596
    Fernando
    Customer Support

    Hi Simone,

    May you check the Post format of the Posts showing the full post in archive pages? By default, the excerpt and word count options only work for Standard post format.

    Reference: https://docs.generatepress.com/article/excerpt-issues/#full-post-content-displaying-while-using-excerpt

    Kindly let us know.

    #2251669
    Simone

    Hi Fernando,

    Thank you for your reply. Should I put the code of the snippet? If so, can you please tell me where? Thank you

    #2251760
    David
    Staff
    Customer Support

    Hi there,

    you have two options:

    1. You can edit the Post(s) and change the Post Format from Video to Standard.

    OR

    2. You can add the PHP Snippet to your site.
    This doc explains how to add the code:

    https://docs.generatepress.com/article/adding-php/

    TLDR: Are you using a Child Theme?
    If Yes – add the code to the Child Theme > functions.php file
    If No – install the Code Snippets plugin and add the code using a new snippet

    #2252150
    Simone

    Hi David,
    Thank you. One more question, please. Which of these codes do I have to add to the child theme? And where exactly in the child theme?
    Thanks again again

    #2252310
    Ying
    Staff
    Customer Support

    If you want to go with the 2nd option David suggested, you can add this code to your child theme’s functions.php file.

    add_filter( 'generate_show_excerpt', function( $show ) {
        if ( 'standard' !== get_post_format() && ! $show ) {
            return true;
        }
        return $show;
    } );
    #2253067
    Simone

    Hi Ying, thank you!

    #2253357
    Ying
    Staff
    Customer Support

    No problem 🙂

Viewing 8 posts - 1 through 8 (of 8 total)
  • You must be logged in to reply to this topic.