askdesign
10/3/2015 - 12:08 PM

Content or Image at Top of Genesis Archive Page / Widget

by Brad Dalton - AbbeyK, Barrett, and Kellem sites

https://wpsites.net/web-design/adding-new-widget-areas-in-studiopress-themes/

/** Add content above blog archives via widget - Solution is_home() provided by Erik D. Slater in FB Genesis WP group */
 
genesis_register_sidebar( array(
	'id'          => 'blog-archive-top',
	'name'        => __( 'Blog Archive Top', 'ask' ),
	'description' => __( 'Add Content Here', 'ask' ),
) );
 
add_action( 'genesis_before_loop', 'blog_archive_content' );
function blog_archive_content() {
if ( is_home() && is_active_sidebar('blog-archive-top') ) {
genesis_widget_area( 'blog-archive-top', array(
'before' => '<div class="blog-archive-top widget-area">',
'after'	 => '</div>',
		) ); 
 
  }
 
}
/** http://sridharkatakam.com/add-custom-html-list-posts-blog-page-genesis/

* Bill Erickson's article about not using the blog post (http://www.billerickson.net/dont-use-genesis-blog-template/). 

* Bill offers an alternative solution, if you prefer to use the WP visual editor to insert the content above the blog loop.
* I took this out of Kellem’s site because it wasn’t working:
* https://gist.github.com/billerickson/9228933

* 10.14.14
http://sridharkatakam.com/show-full-post-followed-excerpts-genesis/

* 2.18.14 How to Display Page Content Above Posts When Using Blog Template in Genesis
http://sridharkatakam.com/display-page-content-posts-using-blog-template-genesis/
**/