kylephillips / favorites

Simple and flexible favorite buttons for any WordPress post type.
https://favoriteposts.com
223 stars 86 forks source link

Make .favorites-list class the parent of List Wrapper Element instead of sharing container #151

Closed bshinholser closed 3 years ago

bshinholser commented 3 years ago

If you enable "Customize the favorites list HTML" and then add your own class as the "List Wrapper Element", currently your class is shared with the .favorites-list class. I've run into a situation where it would be helpful if the .favorites-list becomes the parent container and the "List Wrapper Element" and "Single List Element" are children.

<div class="favorites-list"> Becomes the parent container <div class="grid"> List Wrapper Element (by itself) <div class="grid-item">....</div> Single List Element <div class="grid-item">....</div> Single List Element <div class="grid-item">....</div> Single List Element <div class="grid-item">....</div> Single List Element </div> </div>

Is there an existing way to handle this situation?

I love the plugin, it's very handy, thank you!