Code

The Code block allows you to add formatted code for others to view. Use it to display php code, javascript, or CSS rules, selectors, and properties.

// Hook site footer widget area.
add_action( 'genesis_footer', 'frost_site_footer', 10 );
function frost_site_footer() {

	// Add site footer widget area if widgets exist.
	if( is_active_sidebar( 'site-footer' ) ) {

		genesis_widget_area(
			'site-footer',
			array(
				'before' => '<footer class="site-footer has-block-widgets" itemscope itemtype="http://schema.org/WPFooter"><div class="wrap">',
				'after'  => '</div></footer>',
			)
		);

	}

}