remove the automatic excerpt

Home Support PT Magazine remove the automatic excerpt

Tagged: ,

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #17413
    Anonymous
    Inactive

    Hi, How can i remove the automatic excerpt?
    I use the manual “read more” tag in posts, but some post haven’t Read more button on site, because its words less, then the auto excerpt on admin settings.

    thanks.

    #17414
    Anonymous
    Inactive

    Hi, How can i remove the automatic excerpt?
    I use the manual “read more” tag in posts, but some post haven’t Read more button on site, because its words less, then the auto excerpt on admin settings.

    thanks.

    #17452
    nirav
    Keymaster

    Hello There!

    Hope you are doing good!

    You can increase Excerpt Length from Appearance >> Customize >> Theme options >> Blog options >> Excerpt Length
    – If you wish to remove Excerpt Length completely then you have to add the below code in the theme functions.php file

    add_action( 'wp', function(){
        if ( is_home() || is_category() || is_tag() || is_author() || is_date() || is_search() ) {
       	 remove_filter( 'excerpt_length', 'pt_magazine_implement_excerpt_length');
        }
    },20 );

    Hope this helps!

    Have a great day ahead!

    Regards,
    Team ProDesigns

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