• 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

Swap home feature section widget

Home › Community Forums › Optimal Theme Support › Swap home feature section widget

Tagged: swap widget

  • This topic has 2 replies, 2 voices, and was last updated 9 years ago by bagus.
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • January 27, 2014 at 2:53 am #10209
    bagus
    Customer

    Dear Friends,

    Is it possible to swap between home feature sidebar and home feature #1 #2 section?

    Thanks,
    Bagus

    January 27, 2014 at 11:30 am #10216
    Eric
    Customer

    Yes if you’re familiar with basic PHP you can do this in your home.php file. Look for the widget areas and re order them in the order you want them to appear.


    I create awesome sites for awesome people! Contact me if interested – ericsanchez1585@gmail.com

    January 27, 2014 at 11:38 am #10219
    bagus
    Customer

    Hi Eric,

    Thank you for your advice
    Something like this.. haha.. the results was a mess on my localhost. Please revised.

    /**
    * Display widget content for “Home Features” sections.
    *
    */
    function optimal_home_loop_helper_middle() {

    echo ‘<div class=”home-features”><div class=”wrap”>’;

    genesis_widget_area( ‘home-feature-1’, array(
    ‘before’ => ‘<div class=”home-feature-1″>’,
    ‘after’ => ‘</div>’,
    ) );

    genesis_widget_area( ‘home-feature-2’, array(
    ‘before’ => ‘<div class=”home-feature-2″>’,
    ‘after’ => ‘</div>’,
    ) );

    echo ‘<div class=”home-feature-section”>’;

    genesis_widget_area( ‘home-feature-sidebar’, array(
    ‘before’ => ‘<div class=”home-feature-sidebar”>’,
    ‘after’ => ‘</div>’,
    ) );

    echo ‘</div><!– end .home-feature-section –></div><!– end .wrap –></div><!– end .home-features –>’;

    }

  • Author
    Posts
Viewing 3 posts - 1 through 3 (of 3 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