wpsmith / genesis-sandbox-featured-content-widget

Genesis Sandbox Featured Content Widget. Based on Nick Croft's Genesis Featured Widget Amplified for additional functionality which allows support for custom post types, taxonomies, and extends the flexibility of the widget via action hooks to allow the elements to be re-positioned or other elements to be added.
39 stars 21 forks source link

Basic Markup is Different Than the Native Genesis Featured Posts Widget #2

Closed webfocusdesign closed 10 years ago

webfocusdesign commented 10 years ago

Hi,

As I mentioned on Twitter, I was testing your widget to use in place of the native Genesis Featured Posts widget in the "Our Work" section from the Agency Pro demo. I want to display WooCommerce products there.

The basic layout of that widget area (3 cols image grid without any space between them) worked when I added the .featuredpost class to the widget using a widgets classes plugin but the content padding doesn't work as the markup of your widget is different and lacks a couple of containers in comparison with the native widget as illustrated below:

This is example markup from the native Featured Posts widget in Agency Pro (using unit test or some other dummy content) :

https://gist.github.com/webfocusdesign/7725837

If the markup could match it would be great. I haven't tested in other child themes yet but I'm pretty sure the same thing would happen.

Thanks!

wpsmith commented 10 years ago

In Commit f143a8c3bd4a030917da8f9899a488ee9bfdde9a and 2efe6182c9a689e5071d5fd16081cdfac85b44e1, I added the .featured{post_type} class with a filter (gsfc_add_featuredpost) to add featuredpost to all regardless of type.