Skip to content

Instantly share code, notes, and snippets.

/functions.php Secret

Created February 16, 2015 17:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/b5c07c4d9f3deb2f9abd to your computer and use it in GitHub Desktop.
Save anonymous/b5c07c4d9f3deb2f9abd to your computer and use it in GitHub Desktop.
Get
<?php
function haw_bottom_widget() {
global $page;
$temp_slug = get_page_template_slug( get_the_ID() );
if ( $temp_slug == 'full-width-content') {
if ( is_active_sidebar('biomat-hw-widget-left') || is_active_sidebar('biomat-hw-widget-right') ) {
echo '<div class="hw-bottom-widgets"><div class="wrap">';
echo '<div class="two-thirds first">';
genesis_widget_area( 'biomat-hw-widget-left', array( 'before' => '<div class="biomat-hw-widget-left">', 'after' => '</div>' ));
echo '</div>';
echo '<div class="one-third">';
genesis_widget_area( 'biomat-hw-widget-right', array( 'before' => '<div class="biomat-hw-widget-right">', 'after' => '</div>' ));
echo '</div>';
echo '</div></div>';
}
}
}
add_action('genesis_before_footer','haw_bottom_widget', 1);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment