[Theme: Lifestyle Pro] Footer showing outside site container. Help!
-
I’m working in Genesis Lifestyle Pro Theme and I made a custom home page with front-page.php file. I made it a full width page instead of content-sidebar. But now the footer and footer widgets are outside the main container. It’s only happening on the home page. I’m not sure how it got that way or how to fix it. Has anyone else had this happen to them?
I registered a few widget areas in the functions.php and I modified my CSS a bit but not anything to do with the footer. I don’t have a url to show since this is on my local server, but here is the front-page.php file:
<?php /** * This file adds the Home Page to the Lifestyle Pro Theme. * * @author StudioPress * @package Lifestyle Pro * @subpackage Customizations */ add_action( ‘genesis_meta’, ‘lifestyle_home_genesis_meta’ ); /** * Add widget support for homepage. If no widgets active, display the default loop. * */ function lifestyle_home_genesis_meta() { if ( is_active_sidebar( ‘home-top-left’ ) || is_active_sidebar( ‘home-top-right’ ) || is_active_sidebar( ‘home-bottom-left’ ) || is_active_sidebar( ‘home-bottom-right’ ) ) { // Force content-sidebar layout setting add_filter( ‘genesis_pre_get_option_site_layout’, ‘__genesis_return_full_width_content’ ); // Add lifestyle-pro-home body class add_filter( ‘body_class’, ‘lifestyle_body_class’ ); // Remove the default Genesis loop remove_action( ‘genesis_loop’, ‘genesis_do_loop’ ); // Add homepage widgets add_action( ‘genesis_loop’, ‘lifestyle_homepage_widgets’ ); } } function lifestyle_body_class( $classes ) { $classes[] = ‘lifestyle-pro-home'; return $classes; } function lifestyle_homepage_widgets() { if ( is_active_sidebar( ‘home-top-left’ ) || is_active_sidebar( ‘home-top-right’ ) ) { echo ‘<dive class=”wrap”><div class=”home-top”>'; genesis_widget_area( ‘home-top-left’, array( ‘before’ => ‘<div class=”home-top-left widget-area”>’, ‘after’ => ‘</div>’, ) ); genesis_widget_area( ‘home-top-right’, array( ‘before’ => ‘<div class=”home-top-right widget-area”>’, ‘after’ => ‘</div>’, ) ); echo ‘</div></div>'; } if ( is_active_sidebar( ‘home-bottom-left’ ) || is_active_sidebar( ‘home-bottom-center’ ) || is_active_sidebar( ‘home-bottom-right’ ) ) { echo ‘<div class=”wrap”><div class=”home-bottom”>'; genesis_widget_area( ‘home-bottom-left’, array( ‘before’ => ‘<div class=”home-bottom-left widget-area”>’, ‘after’ => ‘</div>’, ) ); genesis_widget_area( ‘home-bottom-center’, array( ‘before’ => ‘<div class=”home-bottom-center widget-area”>’, ‘after’ => ‘</div>’, ) ); genesis_widget_area( ‘home-bottom-right’, array( ‘before’ => ‘<div class=”home-bottom-right widget-area”>’, ‘after’ => ‘</div>’, ) ); echo ‘</div></div>'; } } genesis();
- The topic ‘[Theme: Lifestyle Pro] Footer showing outside site container. Help!’ is closed to new replies.