[Support request] Feature – Disable excerpt

Home Forums Support [Support request] Feature – Disable excerpt

Home Forums Support Feature – Disable excerpt

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #1467443
    Eaydman

    Hi,

    It would be nice if it could be possible to disable the excerpt in the customazer.
    Right now I have set it to 0. But then it shows the dots “…” in the frontend.

    Is it possible via function.php to disable the excerpt ?

    #1467546
    Leo
    Staff
    Customer Support

    Hi there,

    You could try this CSS to hide the dots:

    .entry-summary p:not(.read-more-container) {
        display: none;
    }

    I used the same in Broadcast:
    http://gpsites.co/broadcast/

    #1467555
    Eaydman

    Yes I use that today too.
    But thats not the best way to do it 😛

    #1467591
    Leo
    Staff
    Customer Support

    Try this snippet:

    add_filter( 'generate_excerpt_more_output', function( $more ) {
            return '';
    }, 50 );

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

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