- This topic has 2 replies, 2 voices, and was last updated 9 years ago by .
Viewing 3 posts - 1 through 3 (of 3 total)
Viewing 3 posts - 1 through 3 (of 3 total)
- You must be logged in to reply to this topic.
Home › Community Forums › Optimal Theme Support › Swap home feature section widget
Tagged: swap widget
Dear Friends,
Is it possible to swap between home feature sidebar and home feature #1 #2 section?
Thanks,
Bagus
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
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 –>’;
}