Not displaying properly on home
-
So shadow box works properly here https://www.avance.org/samplera/
But doesn’t work on homepage https://www.avance.org/
Can anyone see why?
Im using the genesis theme platform from studiopress. My home.php file looks like this:
[ Moderator Note: Please post code or markup snippets between backticks or use the code button. ]
<?php add_action( 'genesis_meta', 'education_home_genesis_meta' ); /** Unregister primary navigation menu */ add_theme_support( 'genesis-menus', array( 'secondary' => __( 'Secondary Navigation Menu', 'genesis' ) ) ); /** Remove header */ add_filter( 'genesis_pre_get_option_site_layout', '__genesis_return_full_width_content' ); 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 ); remove_action( 'genesis_loop', 'genesis_do_loop' ); /** * Add widget support for homepage. If no widgets active, display the default loop. * */ function education_home_genesis_meta() { global $paged; if( $paged < 1 ) { if ( is_active_sidebar( 'slider' ) || is_active_sidebar( 'intro' ) || is_active_sidebar( 'impact' ) || is_active_sidebar( 'featured' ) ) { add_action( 'genesis_before_content', 'education_home_loop_helper', 1 ); } } } function education_home_loop_helper() { echo '<div id="home-featured">'; genesis_widget_area( 'slider', array( 'before' => '<div class="slider widget-area"><div id="doll"></div>' ) ); genesis_widget_area( 'featured', array( 'before' => '<div class="featured widget-area"><div class="inner">', 'after' => '<div class="clear"></div></div></div><!-- end .featured -->' ) ); genesis_widget_area( 'impact', array( 'before' => '<div class="impact widget-area"><div class="inner">', 'after' => '<div class="clear"></div></div></div><!-- end .featured -->' ) ); genesis_widget_area( 'intro', array( 'before' => '<div class="intro widget-area"><div class="inner">', 'after' => '<div class="clear"></div></div></div><!-- end .intro -->' ) ); echo '</div>'; } genesis();
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Not displaying properly on home’ is closed to new replies.