Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Genesis Homepage Slider Widget Area for child theme functions.php
// Homepage Slider
genesis_register_sidebar( array(
'id' => 'homepage-slider',
'name' => __('Homepage Slider'),
'description' => __('This is the homepage slider'),
add_action('genesis_after_header', 'homepage_slider_area');
function homepage_slider_area() {
if (is_home() || is_front_page()) {
echo '<div class="homepage_slider_area">';
echo '<div class="wrap">';
genesis_widget_area('homepage-slider', array('before' => '<div class="homepage-slider widget-area">'));
echo '</div>';
echo '</div>';
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment