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 Homepage.    I managed that.  This was similar.  Found a resource here that had several 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 directory:  wp-content/themes/     here you need to choose the theme folder  you are currently using.    You can find out what this is by going to your WP admin page  and under  appearance > themes     it should tell you the name of the template.  The folder name “should” be similar.     functions.php should be right inside there.

Now,  you’ll add this all by itself  :

<?php
add_filter(‘excerpt_length’, ‘my_excerpt_length’);
function my_excerpt_length($length) {
return 150; // Or whatever you want the length to be.
}?>
My post is set to 150 characters….


Thats it.  Worked like a charm.


Leave a Reply

*

Anti-Spam Quiz:

captcha *

UA-7731317-2