• 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

adding widget on each side of slider

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

  • This topic has 4 replies, 2 voices, and was last updated 10 years, 10 months ago by Wes.
Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • July 11, 2012 at 3:19 am #1094
    Cove145
    Customer

    Could you steer me in the right direction to add a widget to each side of the slider section?

     

    thanks
    Kris

    July 11, 2012 at 11:34 am #1096
    Wes
    Moderator

    Take a look at your home.php file where the slider widget/content currently is, and duplicate it twice. Make sure the 2 new widgets that you duplicate are renamed so you don’t have more than 1 of the same function. Also remember to register you widget in your functions.php file.

    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

    July 13, 2012 at 4:36 pm #1112
    Cove145
    Customer

    OK, so I have done some more work on it, I can’t get the box-2 (right widget of the slider) to be in the right position)

     

    Thanks

     

    Kris

    July 14, 2012 at 10:09 pm #1115
    Wes
    Moderator

    Looks like you’ll need to add a width to the slider (middle widget) and you would also need to set it to float left as well.

  • Author
    Posts
Viewing 5 posts - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.
Log In

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