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

WP SITES

2766

Original Genesis Tutorials & 6000+ Guaranteed Code

Snippets

  • Consultation
  • Premium Access
  • Log in

Genesis Featured Posts Widget You Can Modify

This code enables you to customize the default Genesis featured posts widget from your child themes folder and modify the code safely so its not lost when Genesis updates.

genesis custom posts widget

The reason i have written this tutorial is because of 2 forum questions i read recently, both of which are pretty much the same question:

I am looking to re-position post meta area before post title with image aligned left.

Code Installation – Beginners Guide

  1. Copy the PHP code from the view raw link in the Gist labelled genesis-post-widget.php and paste it into a new file named genesis-post-widget.php using a code editor like Notepad++.
  2. Upload the file to the root directory of your child themes folder.
  3. Copy the code from the Gist labelled functions.php and paste it at the end of your child themes functions.php file.
  4. You’ll then find a new widget named Genesis Custom Posts under Appearance > Widgets.

Note: You can change the classes in the code or use CSS from any StudioPress child theme for the Genesis Featured Posts widget and change the classes to match what you have in the code of the Genesis Custom Posts widget.

Related Widgets & Plugins

  • Modify Genesis Featured Posts Widget
  • Featured Posts Pro Widget for Genesis
  • Genesis Featured Posts Widget – Entry Title Before Featured Image

Genesis Featured Posts

Reader Interactions

Comments

  1. Debbie Hastings says

    March 12, 2021 at 4:03 am

    Hey Brad. I’d like to add some CSS around the month, day, year for this. Is there a way to do that? I’ve been able to do it for post meta on the blog pages, but can’t see to find where to do it for the featured post.

    Log in to Reply
    • Brad Dalton says

      March 12, 2021 at 7:45 am

      Link to the featured posts widget on a live site please.

      Log in to Reply
  2. Mark says

    September 21, 2014 at 6:23 pm

    Thanks for the code — will come in very handy. Any quick suggestions where to hardcode (for simplicity over updating all of plugin) a line to exclude a category, i.e. basically want to show all post, excluding previously shown, but nothing from Category X.

    Log in to Reply
    • Brad Dalton says

      September 21, 2014 at 7:12 pm

      Hello Mark

      You can modify the code to exclude a category the same way you would exclude a category using WP_Query but the changes will be hard coded into your custom genesis featured posts widget.

      Log in to Reply

Leave a Reply Cancel reply

You must be logged in to post a comment.

Primary Sidebar

Code written by Brad Dalton specialist for WooCommerce & WordPress theme customization. Read More…

Advertise · WPEngine · Genesis · Log in

  • Access Problems
  • Account Details
  • Consulting
  • Tags
 

Loading Comments...
 

You must be logged in to post a comment.