Enhance the Genesis Featured Page widget to allow page excerpts to be displayed. This gives complete control of the output.
My preferred WordPress theme framework is Genesis by StudioPress. As I have said before, I like that it uses code to enable, disable and rearrange features (I am a coder after all). The Genesis framework comes with a widget called “Genesis – Featured Page” that “Displays featured page with thumbnails.” It is used in a number of Genesis child themes.
The widget is a simple way to display a portion of a page’s content in a widget area. The amount of content can be limited by specifying the number of characters to display. This often results in sentences being abruptly truncated. I always wanted to be able to use a excerpt as it would give you much more control of the displayed content and often the first part of a page does not adequately explain the page content.
Add Show Page Excerpt option
I decided to enhance the widget to include the option to display the page excerpt.
Apart from the addition of the “Show Page Excerpt” option, the most obvious change is use of radio buttons when choosing the content to show (none, excerpt, content).
Available on GitHub
To ensure that excerpts are available for pages, the code adds excerpt support to pages. The code will need to be updated to keep it in sync with the latest Genesis framework and I will consider removing Genesis specific functions to allow the widget be used with any theme.