Add A Button To The Genesis Featured Posts Widget

This tutorial provides the PHP code which enables you to add a button to any Genesis Featured Posts widget.

This solution works without editing the code for the widget which is included in Genesis.

Here’s one example which also includes a corner ribbon.

genesis-featured-posts

The code uses your child themes default button CSS however you can easily change the class in the code to use custom CSS for a different button.

The code also enables you to exclude specific posts from displaying the button by using any conditional tags so its highly flexible.

Basically, this solution enables you to make the genesis featured posts widget look like the new author pro widget generated by the author pro plugin by StudioPress.

Here’s the PHP code you simply copy and paste at the end of your child themes functions.php file using a code editor.

Was This Tutorial Helpful?

Free

$0

Access only to all free tutorials per month.



Monthly

$75

Access to 10 premium tutorials per month.


Tutorial Request


Includes code guarantee and coding support.

Yearly

$500

Access to 15 premium tutorials per month.


Monthly Tutorial Request


Includes code guarantee and priority coding support.