Skip to content

Instantly share code, notes, and snippets.

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 PurpleHippoDesign/d4e14f05002d4af01e5b to your computer and use it in GitHub Desktop.
Save PurpleHippoDesign/d4e14f05002d4af01e5b to your computer and use it in GitHub Desktop.
<?php // Get rid of this tag
//* Register widget areas
genesis_register_sidebar( array(
'id' => 'after-entry',
'name' => __( 'After Entry', 'theme-prefix' ),
'description' => __( 'This is the after entry section.', 'theme-prefix' ),
) );
//* Hooks after-entry widget area to single posts
add_action( 'genesis_entry_footer', 'my_after_entry_widget' );
function my_after_entry_widget() {
if ( ! is_singular( 'post' ) )
return;
genesis_widget_area( 'after-entry', array(
'before' => '<div class="after-entry widget-area"><div class="wrap">',
'after' => '</div></div>',
) );
}
/* After Entry
--------------------------------------------- */
.after-entry {
background-color: #ddd;
border-bottom: 1px solid #222;
border-top: 2px solid #222;
margin-top: 40px;
margin-top: 4rem;
padding: 30px 0;
padding: 3rem 0;
}
.after-entry p:last-child {
margin-bottom: 0;
}
.after-entry .widget {
margin-bottom: 30px;
margin-bottom: 3rem;
}
.after-entry .widget:last-child {
margin-bottom: 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment