• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar

WP SITES

2662

Original Genesis Tutorials & 5000+ Guaranteed Code

Snippets

  • Support
  • Newsletter
  • Videos
  • Log in

Premium Member? - Request custom code

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.

Register for full access

Genesis Featured Posts

Reader Interactions

Leave a Reply Cancel reply

You must be logged in to post a comment.

Primary Sidebar

PHP Code

template_include

get_body_class

if else

array

class_exists

foreach

sprintf

add_action

printf

variable

Advertise · WPEngine · Genesis · Log in

  • How Premium Membership Works
  • Sign Up
  • Support
  • Subscription Details/Invoice
  • Tagged Tutorials
  • Access-Download Problems