Or, embed this snippet using GenerateWP WordPress Plugin.

Download

Clone

After Posts

Widgetized area after posts

// Register Sidebar
function after_posts() {

	$args = array(
		'id'            => 'after_posts',
		'name'          => __( 'After Posts and Pages', 'text_domain' ),
		'description'   => __( 'Appears on posts and pages in the sidebar.', 'text_domain' ),
		'class'         => 'After Posts',
		'before_title'  => '<h2 class="after_posts"',
		'after_title'   => '</h2>',
		'before_widget' => '<li id=',
		'after_widget'  => '</li>',
	);
	register_sidebar( $args );

}

// Hook into the 'widgets_init' action
add_action( 'widgets_init', 'after_posts' );