I registered a couple new widget areas above my content and below entries, and I’m having trouble styling them. The classes are above_content
and after_entry
but making an .above_content
and .after_entry
class in my stylesheet isn’t affecting them. Any ideas? I’m just trying to align then and add padding. My test site
This is the code I used to register the widget area
genesis_register_sidebar( array(
'id' => 'after_entry',
'name' => __( 'After Entry', 'domain' ),
'description' => __( 'After Entry', 'domain' ),
) );
add_action( 'genesis_entry_footer', 'your_widget2' );
function your_widget2() {
if ( is_active_sidebar('after_entry') ) {
genesis_widget_area( 'after_entry', array(
'before' => '<div class=âafter_entry widget-area">',
'after' => '</div>',
) );
}
}
Something is wrong with your HTML,
that’s why class doesn’t apply.
It should be like below,
You had
â
, it should be"
. check below,I hope it helps.