I would like a like to pull more content with the Latest News widget - last col in footer, just to even things up down there.
See - http://wwwquadcitiesassistedliving.zippykid.it/
Latest News widget how can I pull more Characters
7 posts from 3 voices-
Posted 8 months ago #
-
Hi linkrep42,
In your Latest News widget, just change the "How many entries do you want to display:" and set it to 2 or 3.
Regards,
IsmaelPosted 8 months ago # -
My question was not clear - I want to pull more characters from each article, the site will probably only have 2-3 articles produced for it in a 6 month period.
Posted 8 months ago # -
Hi linkrep42,
Try to edit wp-content\themes\abundance\functions.php and at the bottom of this file add this code:
function wpe_excerptlength_index( $length ) { return 120; } function wpe_excerpt( $length_callback = '', $more_callback = '' ) { if ( function_exists( $length_callback ) ) add_filter( 'excerpt_length', $length_callback ); if ( function_exists( $more_callback ) ) add_filter( 'excerpt_more', $more_callback ); $output = get_the_excerpt(); $output = apply_filters( 'wptexturize', $output ); $output = apply_filters( 'convert_chars', $output ); $output = '<p>' . $output . '</p>'; echo $output; }Just return 120; to the number of words you want to put. (the default is 40)
Then edit wp-content\themes\abundance\framework\php\class-framework-widgets.php and in line 405 you can find this code:
the_excerpt();
Just replace it with this code:
wpe_excerpt('wpe_excerptlength_index');Hope this helps. :)
Regards,
IsmaelPosted 8 months ago # -
Awesome works perfectly, thank you for your help.
Posted 8 months ago # -
Great! Glad Ismael could help :)
Regards,
Devin
Posted 8 months ago # -
Hi linkrep42,
Glad that we could help. I've marked this as resolved. :)
Cheers,
IsmaelPosted 8 months ago #
Reply
You must log in to post.














