How to Show Flexible Features Widget in Genesis Sample

Update: Check out a more recent tutorial which uses Genesis Grid Layout to help you do the same job.

Infinity Pro is one of the coolest Genesis child themes out there, and the theme offers a slew of great features. One of those features in flexible features widgets on front page.

In this guide, I’ll share how to replicate the same style in Genesis Sample.

Before we begin, I assume you already have created a front-page.php in your folder and registered some widget areas in your Genesis Sample theme. If you haven’t then head over to my earlier post and learn how to do both.

Note: You may need to change the name of your widget class in the code below; otherwise, it won’t work.

So, let’s go!

Step #1: Enqueue Ionicons Scripts

You can use any font icons but since we’re replicating the Infinity Pro layout, let’s use Ioniconos.

https://gist.github.com/topleague/1f2cb84644ad2b56b6d080256acbab03

Step #2: Set up Widget Counts

Add the following code to your functions.php file

https://gist.github.com/topleague/2cec0245db8678b985ad2a67c68ecd1a

Step #3: Display Flexible Widget

Add the following code to your front-page.php file. Make sure to change the widget classes.

https://gist.github.com/topleague/4b2f8487f4ab7b1781cc29551954a4f6

Step #4: CSS for Featured Widgets in Grid Layout

Add the styles either at the bottom of your styles.css file or inside WordPress Customizer.

https://gist.github.com/topleague/f6a1970b121b3b054ed71e5e438250ff

Step #5: Content for Widgets

This step is optional. Go to Appearance > Widgets. Drag 7 text widgets. Paste the text in the exact order as given below.

https://gist.github.com/topleague/c6f9c83272844713c89de67daad8dd54

Hope this helps. Let me know if you have any questions.