Swap home feature section widget

Homepage Community Forums Optimal Theme Support Swap home feature section widget

Tagged: 

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #10209
    bagus
    Customer

      Dear Friends,

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

      Thanks,
      Bagus

      #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

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

          }

        Viewing 3 posts - 1 through 3 (of 3 total)
        • You must be logged in to reply to this topic.