• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
Appfinite

Appfinite

Premium WordPress Themes for The Genesis Framework

  • Themes
  • Blog
  • Tutorials and Resources
  • Forums
  • Contact Us

home feature wrap all pages

Home › Community Forums › Adapt Theme Support › home feature wrap all pages

  • This topic has 6 replies, 2 voices, and was last updated 10 years, 10 months ago by Wes.
Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • May 24, 2012 at 1:24 pm #1004
    darrylo
    Customer

    How can I add the home feature wrap to the bottom of all pages?

    May 24, 2012 at 1:46 pm #1005
    Wes
    Moderator

    You can add something like this in your functions.php file, and adjust where you want it to show –

    
    add_action('genesis_before_footer', 'adapt_home_loop_helper_middle2');
    function adapt_home_loop_helper_middle2() {
    
    		echo '<div class="home-feature-wrap">';
    				
    		if ( is_active_sidebar( 'home-feature-1' ) ) {
    			echo '<div class="home-feature-1">';
    			dynamic_sidebar( 'home-feature-1' );
    			echo '</div><!-- end .home-feature-1 -->';
    		}		
    		
    		if ( is_active_sidebar( 'home-feature-2' ) ) {
    			echo '<div class="home-feature-2">';
    			dynamic_sidebar( 'home-feature-2' );
    			echo '</div><!-- end .home-feature-2 -->';
    		}
    
    		if ( is_active_sidebar( 'home-feature-3' ) ) {
    			echo '<div class="home-feature-3">';
    			dynamic_sidebar( 'home-feature-3' );
    			echo '</div><!-- end .home-feature-3 -->';
    		}
    		
    		if ( is_active_sidebar( 'home-feature-4' ) ) {
    			echo '<div class="home-feature-4">';
    			dynamic_sidebar( 'home-feature-4' );
    			echo '</div><!-- end .home-feature-4 -->';
    		}
    		
    		echo '</div><!-- end #home-feature-wrap -->';
    		
    }
    May 24, 2012 at 6:40 pm #1006
    darrylo
    Customer

    Perfect-thank you! Just having a problem removing the home featured code on the home.php page. I’m gettting an error:
    Warning: call_user_func_array() [function.call-user-func-array]: First argument is expected to be a valid callback, ‘adapt_home_loop_helper_middle’ was given in /home/dmrphd/public_html/wp-includes/plugin.php on line 405
    http://dariarockholz.com/

    May 24, 2012 at 6:44 pm #1007
    Wes
    Moderator

    Once you remove that section, you’ll also need to remove that same function from the top areas of the home.php

    May 24, 2012 at 7:08 pm #1008
    darrylo
    Customer

    I have one last problem. My slider was right against the green area (home features) now there is extra space. There’s a “div inner” there but I can’t find where to remove this.

    May 24, 2012 at 8:10 pm #1009
    darrylo
    Customer

    I got it – thanks for all your help

    May 24, 2012 at 10:52 pm #1010
    Wes
    Moderator

    You’re Welcome!

  • Author
    Posts
Viewing 7 posts - 1 through 7 (of 7 total)
  • The topic ‘home feature wrap all pages’ is closed to new replies.

Primary Sidebar

Search Forums

Affiliate Program

Looking to earn some money? Join our Affiliate program and earn 35% of every sale you refer. Top referrers earn 40-50%.

Join Now →

The Genesis Framework

All of our themes are designed for the Genesis Framework. You will need to purchase Genesis in order to use any of our themes.

Purchase Genesis

Hire a Web Developer

Need help setting up or customizing your website?

Contact Us →

Search Full Site

  • Buy Genesis!
  • Shopping Cart
  • Themes
  • My Account
  • Support Forums
  • Tutorials and Resources
  • Privacy Policy
  • Contact Us
  • Follow Us on Twitter

Copyright © 2023 · Appfinite · Built With The Genesis Framework