Add a sidebar at the top of the single product

// Register New Widget
genesis_register_sidebar( array(
'id' => 'awk-custom-widget',
'name' => __( 'Custom Widget', 'genesis' ),
'description' => __( 'Custom Widget Area', 'childtheme' ),
) );

// Hooking the  New Widget 
add_action( 'genesis_before_loop', 'add_genesis_widget_area' );
function add_genesis_widget_area() {
                genesis_widget_area( 'awk-custom-widget', array(
		'before' => '<div class="awk-custom-widget widget-area ">',
		'after'  => '</div>',
    ) );

}
Scroll to Top