[Support request] Content “Excerpt”: The “0” to disable Excerpt totally not working

Home Forums Support Content “Excerpt”: The “0” to disable Excerpt totally not working

Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • #1493040
    Dailyaim Limited

    I have set the “Excerpt” to “0” because I totally wanna remove it, but is not taking effect. Please how can I disable the content excerpt?

    My own advice, it would have been better you included an option as “No Excerpt” – that is the way most other themes build theirs.

    For example, since you have the following options; Excerpt, full content, then you should have just added also “no Excerpt” or “disable Excerpt” or “remove Excerpt” is better and more effective to work with.

    Please How do I disable mine Excerpt, since the “0” is not working??

    #1493151
    David
    Staff
    Customer Support

    Hi there,

    that field only applies if it is a WP auto generated excerpt. If you’re using manual excerpts or the read more tag then that will no apply.

    If neither of them is the case then provide a link to the site so i can see the issue.

    #1493519
    Dailyaim Limited

    here is my website http://www.emyshub.com, please check it out and tell me how to get this done. Thanks

    #1493549
    Tom
    Lead Developer
    Lead Developer

    Hi there,

    You’re using the More Tag which will overwrite the excerpt length value you’ve set in the Customizer.

    You can tell it not to like this:

    add_filter( 'generate_more_tag', '__return_empty_string' );

    Let me know if that makes a difference or not 🙂

    #1493828
    Dailyaim Limited

    You mean I should add this “add_filter( ‘generate_more_tag’, ‘__return_empty_string’ );” to my custom CSS box???

    I have added the line code in; Appearance >> customize >> Additional CSS >> then add this “add_filter( ‘generate_more_tag’, ‘__return_empty_string’ );”, am I correct??

    But the Excerpt is still not disabled yet. http://www.emyshub.com

    was the code added in the right place?

    #1493919
    David
    Staff
    Customer Support

    That code is PHP – this article explains how to add it:

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

    TLDR: If you’re not using a Child Theme then install the Code Snippets plugin and add the code to a new snippet.

    #1494503
    Dailyaim Limited

    1. Am I using a Child theme and How do I know if am using a Child Theme??

    Because so far the only I have done was to download and install the GeneratePress theme and premium plugin. Then for some of my sites, I selected templates from the site-library, while some I customized it like that (without selecting from the site-library).

    So am I using a child-theme??

    2. Applying the above steps on my sites can insect the PHP code on functions.php file or better still install the Code Snippets plugin, or any of the options can serve?

    #1494584
    Leo
    Staff
    Customer Support

    1. It doesn’t sound like you are using a child theme.

    You can check in Dashboard > Appearance > Themes.

    2. Code Snippets is the best if you aren’t using a child theme already.

    Do not modify the theme’s function.php as the changes will be erased during updates.

    #1494921
    Dailyaim Limited

    Mr Tom,
    I have installed the Code Snippets plugin and added the add_filter( ‘generate_more_tag’, ‘__return_empty_string’ );, but still the post Excerpt is still showing. check out http://www.emyshub.com

    #1495530
    David
    Staff
    Customer Support

    Hi there,

    something is injecting code into your post excerpt.
    If you right click and inspect your excerpts and check the Element in the developers tools you will see this – i examined the latest post:

    <div class="entry-summary" itemprop="text">
        <div class="at-above-post-homepage addthis_tool" data-url="https://www.emyshub.com/download-cloudapp-image-editor-screen-recorder/"></div>
            <p>Click here to Download CloudApp free software for Capturing and Instantly Sharing with your team… Record screen as a video with voice & …<!-- AddThis Advanced Settings above via filter on get_the_excerpt --><!-- AddThis Advanced Settings below via filter on get_the_excerpt --><!-- AddThis Advanced Settings generic via filter on get_the_excerpt --><!-- AddThis Share Buttons above via filter on get_the_excerpt --><!-- AddThis Share Buttons below via filter on get_the_excerpt --></p>
        <div class="at-below-post-homepage addthis_tool" data-url="https://www.emyshub.com/download-cloudapp-image-editor-screen-recorder/"></div>
        <p><!-- AddThis Share Buttons generic via filter on get_the_excerpt --></p>
    </div>

    So another plugin or function is inserting code into your excerpt. You will need to find which plugin/function is causing that.

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