• 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

Reply To: adding widget on each side of slider

Home › Community Forums › Adapt Theme Support › adding widget on each side of slider › Reply To: adding widget on each side of slider

July 13, 2012 at 12:17 pm #1111
Cove145
Customer

Ok, I have been working on this and I am missing something and can’t get it figured out.  This is what I have for my home.php, I have tried a few different things so I know this one is wrong.

 

/**
* Display widget content for “slider” and “welcome” sections.
*
*/
function adapt_home_loop_helper_top() {

echo ‘<div>’;

if ( is_active_sidebar( ‘box-1’ ) ) {
echo ‘<div>’;
dynamic_sidebar( ‘box-1’ );
echo ‘</div><!– end .box-1 –>’;

}

if ( is_active_sidebar( ‘slider’ ) ) {
echo ‘<div>’;
dynamic_sidebar( ‘slider’ );
echo ‘</div><!– end .slider –>’;

}

if ( is_active_sidebar( ‘box-2’ ) ) {
echo ‘<div>’;
dynamic_sidebar( ‘box-2’ );
echo ‘</div><!– end .box-2 –>’;

}

echo ‘</div><!– end #slider-wrap –>’;

}

echo ‘<div>’;
if ( is_active_sidebar( ‘welcome’ ) ) {
echo ‘<div><div>’;
dynamic_sidebar( ‘welcome’ );
echo ‘</div><!– end .welcome-wrap –></div><!– end .welcome-inner –>’;
}

echo ‘</div><!– end #welcome-wrap –>’;

my website is http://www.kriscovert.com

Thanks

 

Kris

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