How to change the excerpt link on homepage.

OK.  Jut had a request increase the post length of posts on the home page.   I at one time needed to limit the length of  of the post on Home­page.    I man­aged that.  This was sim­i­lar.  Found a resource here that had sev­eral options.  The on ehtat worked for me was this:

Find the function.php  file inside of your WP theme.      If you dont know its in this direc­tory:  wp-content/themes/     here you need to choose the theme folder  you are cur­rently using.    You can find out what this is by going to your WP admin page  and under  appear­ance > themes     it should tell you the name of the tem­plate.  The folder name “should” be sim­i­lar.     functions.php should be right inside there.

Now,  you’ll add this all by itself  :

add_filter(‘excerpt_length’, ‘my_excerpt_length’);
func­tion my_excerpt_length($length) {
return 150; // Or what­ever you want the length to be.
My post is set to 150 characters….

Thats it.  Worked like a charm.

About the author

 How to change the excerpt link on homepage. I’ve started design­ing web­sites while at Uni­ver­sity of Hous­ton dur­ing my first Pho­to­shop 3.1 expe­ri­ence in 1996 on a Mac­in­tosh com­puter. I built my own com­put­ers (Win­dows PCs) with the help of a friend and have been dig­i­tally involved ever since. I am both Win­dows and PC lit­er­ate but grav­i­tate toward OSX. I’ve grad­u­ally got­ten back to my roots as a tac­tile artist / designer by work­ing more with tra­di­tional medi­ums like draw­ing, paint­ing, and mixed media.

Leave a Reply


captcha *

Anti-Spam Quiz: