WordPress.org

Ready to get started?Download WordPress

Forums

Shadowbox JS
[resolved] Not displaying properly on home (2 posts)

  1. charriott4
    Member
    Posted 1 year ago #

    So shadow box works properly here http://www.avance.org/samplera/

    But doesn't work on homepage http://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();

    http://wordpress.org/extend/plugins/shadowbox-js/

  2. charriott4
    Member
    Posted 1 year ago #

    NEVERMIND FIXED!

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.