I want to disable the excerpt from showing in blog and entire website in functions.php file.

This didn't work

add_filter( 'excerpt_more', '__return_empty_string' );  

You need to call remove_post_type_support() in your functions.php like that:

 * Remove unwanted features.
add_action('init', 'my_theme_remove_post_type_support');
function my_theme_remove_post_type_support() {
  remove_post_type_support('post', 'excerpt');

Put this code in functions.php file and check it.

function disable_excerpt_more( $more ) {
    return '';
add_filter( 'excerpt_more', 'disable_excerpt_more' );

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.