Reply To: How to add more text lenght in two column wiget excerpt

NapitWPTech Theme Support Forums The NewsMag How to add more text lenght in two column wiget excerpt Reply To: How to add more text lenght in two column wiget excerpt

#178

Bishal Napit
Keymaster

@lingtune

If you want to manually add the excerpt on the posts to display those on the front-end, then, you can follow this link: https://napitwptech.com/tutorial/adding-manual-excerpt-in-wordpress-posts/. Also, the excerpt will display 75 words by default in this theme, not the characters. Can you be sure on this?

But, if you want to change that excerpt length via the PHP code, then, please create a child theme and then add the below PHP code in the functions.php file of the child theme and check:-

add_filter('excerpt_length', 'the_newsmag_child_excerpt_length', 12);
function the_newsmag_child_excerpt_length($length) {
	return 150;
}

Refer here: https://napitwptech.com/tutorial/wordpress-development/tutorial-creating-wordpress-child-theme/ to create the WordPress child theme.

If you like the theme and appreciate the work put out on the theme, then, you can help by rating this theme through this link here: https://wordpress.org/support/theme/the-newsmag/reviews/

Thanks.
Bishal Napit