Archived topic
Feature - Disable excerpt
3 replies · Started by Eaydman on October 1, 2020
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 ?
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/
Yes I use that today too.
But thats not the best way to do it 😛
Try this snippet:
add_filter( 'generate_excerpt_more_output', function( $more ) {
return '';
}, 50 );
Adding PHP: https://docs.generatepress.com/article/adding-php/