Balance Theme- How to Change the "Home" Page???

Community Forums Forums Design Tips and Tricks Balance Theme- How to Change the "Home" Page???

This topic is: not resolved

Tagged: 

This topic contains 2 replies, has 3 voices, and was last updated by  joycegrace 11 months, 1 week ago.

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #40002

    SocialSuzi
    Participant
    Post count: 6

    I want the front page of my Balance themed site to be a static page- how can I make the #home-featured items show up on this page instead of the blog?

    You can see the work in progress here: http://thesuccesssuite.com/

    http://thesuccesssuite.com/
    #40050

    braddalton
    Participant
    Post count: 7443

    You can remove the posts from your home page using various methods.

    One way is to remove this code from your home.php file:

    add_action( 'genesis_loop', 'child_grid_loop_helper' );
    /** Add support for Genesis Grid Loop **/
    function child_grid_loop_helper() {
    
    	if ( function_exists( 'genesis_grid_loop' ) ) {
    	
    		genesis_grid_loop( array(
    			'features' => 1,
    			'feature_image_size' => 0,
    			'feature_image_class' => 'align none post-image',
    			'feature_content_limit' => 0,
    			'grid_image_size' => 'grid',
    			'grid_image_class' => 'align none post-image',
    			'grid_content_limit' => 0,
    			'more' => __( 'Continue reading...', 'genesis' ),
    			'posts_per_page' => 0,
    		) );
    
    	}
    
    	else {
    		genesis_standard_loop();
    	}
    
    }
    

    So your home.php file now looks like this:

    <?php
    
    add_action( 'genesis_meta', 'balance_home_genesis_meta' );
    /**
     * Add widget support for homepage.
     *
     */
    function balance_home_genesis_meta() {
    
    	if ( is_active_sidebar( 'home-featured-left' ) || is_active_sidebar( 'home-featured-right' ) ) {
    	
    		add_action( 'genesis_after_header', 'balance_home_loop_helper' );
    
    	}
    }
    
    /**
     * Display widget content for home featured sections.
     *
     */
    function balance_home_loop_helper() {
    
    	if ( is_active_sidebar( 'home-featured-left' ) || is_active_sidebar( 'home-featured-right' ) ) {
    
    			echo '<div id="home-featured"><div class="wrap clearfix">';
    
    			echo '<div class="home-featured-left">';
    			dynamic_sidebar( 'home-featured-left' );
    			echo '</div><!-- end .home-featured-left -->';	
    
    			echo '<div class="home-featured-right">';
    			dynamic_sidebar( 'home-featured-right' );
    			echo '</div><!-- end .home-featured-right -->';
    
    			echo '</div><!-- end .wrap --></div><!-- end #home-featured -->';	
    
    		}
    
    }
    
    remove_action( 'genesis_loop', 'genesis_do_loop' );
    
    genesis();
    

    Or you could also comment out the custom genesis_grid_loop function


    WordPress Developer & Consultant
    Brad Dalton400+ StudioPress Tutorials & 1200+ Code snippets

    #40413

    joycegrace
    Participant
    Post count: 57

    Hello, I tried to do this and ran into two problems:

    I commented out the code as you suggested so my home.php had only the code in the example you gave as what you would end up with if you deleted the part you mentioned.

    That removed all text from the home page. Understandable, since now we want a static page, not posts there.

    I went into Settings > Reading and selected to have my Front Page display a page – but that takes away the banner at the top of Balance theme and shows an inside page without the breadcrumbs – so it’s like a totally new set up.

    Can you help clarify what to do next after removing the code you suggested?


    Find me at Joyce Grace (http://www.joycegrace.ca) and Clicks Online Marketing (clicksonlinemarketing.com).

Viewing 3 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.