Reply To: Swap home feature section widget

Homepage Community Forums Optimal Theme Support Swap home feature section widget Reply To: Swap home feature section widget

#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 –>’;

    }