Skip to content

Instantly share code, notes, and snippets.

Avatar
🏠
Working from home

Scott Agirs ScottAgirs

🏠
Working from home
View GitHub Profile
@ScottAgirs
ScottAgirs / functions.php
Last active Jan 22, 2018
Add Wraps to WP Genesis Framework elements
View functions.php
/**
* @author (Scott) Agirs Neminskis
* @contact scott.a@twosquarepixels.com
*/
// Wrap Genesis Post Loops in an additional element ( div, p, a, or any other )
add_action ( 'genesis_before_loop', 'an_extra_loop_wrapper_open' );
add_action ( 'genesis_after_loop', 'an_extra_loop_wrapper_close' );
function an_extra_loop_wrapper_open() {