Community Forums › Forums › Archived Forums › Design Tips and Tricks › Balance Theme- How to Change the "Home" Page???
Tagged: Balance
- This topic has 2 replies, 3 voices, and was last updated 11 years, 7 months ago by joycegrace.
-
AuthorPosts
-
May 8, 2013 at 7:33 pm #40002SocialSuziMember
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/May 9, 2013 at 3:37 am #40050Brad DaltonParticipantYou 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
May 10, 2013 at 8:53 pm #40413joycegraceParticipantHello, 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)
-
AuthorPosts
- The forum ‘Design Tips and Tricks’ is closed to new topics and replies.