[Resolved] Excerpt Length on Blog Page is not adjusting

Home Forums Support [Resolved] Excerpt Length on Blog Page is not adjusting

Home Forums Support Excerpt Length on Blog Page is not adjusting

Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • #1423680
    Nitin

    I tried adjusting post excerpt length on Blog Page. I go to Customize>>Layout>>Blog>>Content>>Content Type= Excerpt and put there a limit to show words. But it is not changing. I used to have a read more button too, but nothing.

    #1424171
    Leo
    Staff
    Customer Support

    Hi there,

    Looks like you are using the custom excerpt metabox:
    https://www.wpbeginner.com/plugins/add-excerpts-to-your-pages-in-wordpress/

    When the custom excerpt metabox is used, the entire content in the metabox displays – otherwise it defeats the purpose of using the excerpt metabox.

    Let me know if this makes sense 🙂

    #1424507
    Nitin

    Hi Leo,
    Thanks for your response.
    But I want to make you sure that I am not using any custom excerpt meta box, neither by using any coding nor by any plugin. I just write 1-2 lines in WordPress’ inbuilt excerpt box.

    Is it creating the issue? If yes, then what should I do to provide an excerpt to search engines?

    #1424509
    Leo
    Staff
    Customer Support

    I just write 1-2 lines in WordPress’ inbuilt excerpt box.

    That’s actually what I’m referring to – the content in there overwrites the word count option in the customizer.

    If you just want the button to show, then add this PHP snippet:
    https://docs.generatepress.com/article/activating-read-custom-excerpt/#read-more-button

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

    #1424521
    Nitin

    If you just want the button to show, then add this PHP snippet:
    https://docs.generatepress.com/article/activating-read-custom-excerpt/#read-more-button

    If I use the above-mentioned Read More button, will it be after the manual excerpt I use through the inbuilt WordPress excerpt box?

    Is it necessary to use the Code Snippets plugin while adding PHP? Means any other option to change it without using a plugin?

    #1424856
    David
    Staff
    Customer Support

    Hi there,

    Scenarios:

    1. If you DO NOT use the Custom Excerpt field then GP will automatically display the Read More button on a post.
    2. If you ADD a Custom Excerpt to any post then you must add the snippet here for the Read More button to display.

    If you do not want to use Code Snippets then you would need to install child theme:

    https://docs.generatepress.com/article/using-child-theme/

    Then you can add the code to Child Theme – functions.php

    #1424868
    Nitin

    Thanks, David.
    If I don’t use a child theme and want to add the Read More button, then where should I add those snippets? Means is it possible to add the snippets without any Code Snippets plugin? I want to know where should I use the snippets in the Theme Editor option?

    #1424904
    David
    Staff
    Customer Support

    There are only 2 choices:

    1. Use Code Snippets
    2. Use a Child Theme.

    You MUST NOT edit the parent theme files as those changes will be lost when the theme is updated.

    #1425265
    Nitin

    Thank you both. Generatepress support is really awesome.

    #1425335
    Leo
    Staff
    Customer Support

    No problem 🙂

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