WordPress.org

Ready to get started?Download WordPress

Forums

Genesis Grid
[resolved] Homepage (7 posts)

  1. Infonatr
    Member
    Posted 1 year ago #

    Bill,
    When using with the minimum child theme does this plugin change the home page? It's works for blog etc..just can't seem to get it to work on home.

    Thanks

    Mike

    http://wordpress.org/extend/plugins/genesis-grid-loop/

  2. Bill Erickson
    Member
    Plugin Author

    Posted 1 year ago #

    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

  3. Infonatr
    Member
    Posted 1 year ago #

    Perfect. Works like a charm.

    Thanks

    Mike

  4. KeikoZoll
    Member
    Posted 1 year ago #

    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?

  5. Bill Erickson
    Member
    Plugin Author

    Posted 1 year ago #

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

  6. KeikoZoll
    Member
    Posted 1 year ago #

    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.

  7. Bill Erickson
    Member
    Plugin Author

    Posted 1 year ago #

    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.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.