Link Genesis Featured Posts Widget Featured Image & Title To Custom URL’s

The code in this download folder enables you to change the link for the featured image and title when using the Genesis Featured Posts widget. This way you can link both the image and title to any URL of your choosing.

Demo Video #

Shows the featured image and post title for each entry in the Genesis Featured Posts widget linked to the URL you add using the custom field named featured_image_title. If none added, the title and image link to the single post permalink.

Tested using the Genesis Sample child theme by StudioPress however will work fine in any Genesis child theme.

Installation Steps

There’s 3 steps :

# Step 1 : Upload the file named custom-featured-posts-widget.php to your child theme folder.

Custom Featured Posts Widget File in Child Theme Folder

# Step 2 : Copy & paste the PHP code ( excluding the opening PHP tag ) from the functions.php file to the end of your child themes functions file.

Functions file in child theme directory

# Step 3 : Create a custom field named featured_image_title and add your custom link to the value field like you see in the following screenshot :

Custom field for custom URL

Download Folder

Join 5000+ Followers

Get The Latest Free & Premium Tutorials Delivered The Second They’re Published.