WordPress.org

Support

Support » Plugins and Hacks » Genesis Grid » [Resolved] [Plugin: Genesis Grid] Homepage

[Resolved] [Plugin: Genesis Grid] Homepage

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author Bill Erickson

    @billerickson

    The minimum theme is unhooking the main loop and replacing it with its own loop. Make the following changes to home.php for it to work: http://diffchecker.com/7f9X4777

    Perfect. Works like a charm.

    Thanks

    Mike

    KeikoZoll

    @keikozoll

    Similar issue and question, but for the Lifestyle theme. I’m using a sticky post + the Genesis Featured Widget. It’s not displaying as a grid. (URL in reference: http://www.teamzoll.com) Currently, my home.php looks like this:

    <?php
    remove_action( 'genesis_loop', 'genesis_do_loop' );
    add_action( 'genesis_loop', 'lifestyle_home_loop_helper' );
    
    /**
     * Add widget support for homepage. If no widgets active, display the default loop.
     *
     */
    function lifestyle_home_loop_helper() {
    
    	if ( is_active_sidebar( 'home' ) || is_active_sidebar( 'home-left' ) || is_active_sidebar( 'home-right' ) ) {
    
    		dynamic_sidebar( 'home' );
    
    		if ( is_active_sidebar( 'home-left' ) ) {
    			echo '<div id="homepage-left">';
    			dynamic_sidebar( 'home-left' );
    			echo '</div><!-- end #homepage-left -->';
    		}
    
    		if ( is_active_sidebar( 'home-right' ) ) {
    			echo '<div id="homepage-right">';
    			dynamic_sidebar( 'home-right' );
    			echo '</div><!-- end #homepage-right -->';
    		}
    
    	}
    	else {
    		genesis_standard_loop();
    	}
    
    }
    
    genesis();

    Halp?

    Plugin Author Bill Erickson

    @billerickson

    Remove all that code from your home.php, so it just has genesis();

    KeikoZoll

    @keikozoll

    Hi Bill,

    Thanks for the response. I removed everything except the genesis(); part of my home.php file and when I do so, my home page only displays that single word & brackets in plain text – no header, posts, sidebars, theme – nothing. Just “genesis();” in plain text on the screen.

    Is there another solution available? If not, I might have to give up on my Grid home page dreams 😉 Thanks for your help.

    Plugin Author Bill Erickson

    @billerickson

    I’m sorry, did you remove the <?php at the top as well? This is what your page should look like

    <?php

    genesis();

    The word Genesis should not be visible, as that’s the function that runs the Genesis framework.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘[Resolved] [Plugin: Genesis Grid] Homepage’ is closed to new replies.
Skip to toolbar