Skip to content

Instantly share code, notes, and snippets.

View ScottAgirs's full-sized avatar
🏠
Working where WiFi's available

Scott Agirs ScottAgirs

🏠
Working where WiFi's available
View GitHub Profile
@ScottAgirs
ScottAgirs / functions.php
Last active January 22, 2018 03:19
Add Wraps to WP Genesis Framework elements
/**
* @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() {