Community Forums › Forums › Archived Forums › Design Tips and Tricks › Widget Area Not Displaying
- This topic has 2 replies, 2 voices, and was last updated 10 years ago by
paulag01.
-
AuthorPosts
-
June 14, 2016 at 8:59 am #187528
paulag01
MemberI am a bit behooved - I am customizing Genesis Sample Child. I am able to display other conditional widgets ok. Yet this one I cannot get to display no matter how I try. I bet it is something simple.
Here is the code I am using:
//* RRC PAGES HEADER
//*----------------------------------------------------------------//* Register after header widget area
genesis_register_sidebar( array(
'id' => 'before-content-imagearea',
'name' => __( 'Before Content Image Area', 'dfgpa' ),
'description' => __( 'This is a widget area for RRC header', 'dfgpa' ),
) );//* Hook after post widget area after header content
add_action( 'genesis_before_header', 'pg_before_header_widget' );
function pg_before_header_widget() {genesis_widget_area( 'before-header-imagearea', array(
'before' => '<div class="before-header-imagearea widget-area">',
'after' => '</div>',
) );
}And example of page it should display on is here:
http://dfgpacom.wwwss30.a2hosted.com/retirement-resource-center/I DO have an actual image in the widget and that URL is valid (tried it outside of the widget to be sure).
In case the problems lies in the custom template, the page uses this custom page template:
<?php
/**
* Template Name: RRC Home Page*/
// FORCE FULL WIDTH LAYOUT
add_filter ( 'genesis_pre_get_option_site_layout', '__genesis_return_full_width_content' );// Homepage CUSTOM LOOP
//***Add Custom Body Class**/
add_filter( 'body_class', 'no_header_body_class' );
function no_header_body_class( $classes ) {
$classes[] = 'rrc';
return $classes;
}//***Remove Header**/
remove_action( 'genesis_header', 'genesis_header_markup_open', 5 );
remove_action( 'genesis_header', 'genesis_do_header' );
remove_action( 'genesis_header', 'genesis_header_markup_close', 15 );genesis();
?>
Any ideas what I might be missing? I am assuming even if header is removed the "action" still exists (and I tried before_content and same result, no display).
Thanks in advance.
http://dfgpacom.wwwss30.a2hosted.com/retirement-resource-center/
PaulaJune 15, 2016 at 1:28 am #187562Brad Dalton
ParticipantJune 15, 2016 at 8:28 am #187585paulag01
MemberThank you Brad. That is exactly why I needed someone else's eyes on this. Changed so many things trying to get it to work that I lost sight of the basics.
Appreciate the tutorial...it's one I follow often.
Warmly
Paula -
AuthorPosts
- The topic ‘Widget Area Not Displaying’ is closed to new replies.