Duplication of Home Features 1 and 2

Homepage Community Forums Epik Theme Support Duplication of Home Features 1 and 2

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #16898
    leah
    Customer

      I have been using Genesis Simple Sidebars to create additional widgets for an a/b testing page for our site at Linklings and would like to duplicate the Home Feature 1 (left) and Home Feature 2 (right) sections. I tried doing it with simple sidebars, then added the areas into the php template, but for some reason, it’s trying to incorporate the new text areas into the existing Home Feature 1 and 2 areas. This is the portion of the php template that I added to:

      function epik_home_loop_helper_middle() {

      if ( is_active_sidebar( ‘home-feature-1’ ) || is_active_sidebar( ‘home-feature-2’ ) || is_active_sidebar( ‘home-feature-1-l2’ ) || is_active_sidebar( ‘home-feature-2-r2’ ) ) {

      echo ‘<div class=”home-feature-bg-alt hf1″><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>’,
      ) );

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

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

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

      I then created areas for them within the site Stylesheet. Is there something that I am missing, or should do differently? Thank you greatly for your time!

      #16970
      Jason M
      Customer

        Are you trying to create 2 new separate widgets or are you trying to use those same Home Feature 1 and 2 widgets on a different page?

        Multiple Homepages – https://appfinite.com/topic/home-page-layout-to-be-applied-to-internal-pages/#post-9566

        If you are trying to CREATE new widgets in addition to what you have, then the only step you have left is to register them in the functions file….scroll to the bottom of the functions.php file and you’ll see what you’ll need to duplicate.

        #16990
        leah
        Customer

          Hello Jason,

          Thank you so much for your response. Your Multiple Homepages forum helped me tremendously when I created our A/B testing page at http://linklings.com/index.php/index/. The simple sidebars plugin is a great tool, and I was able to create the addition widget areas and add them to the testing page without placing them into the functions file.

          I’ve been trying to create the additional home features 1 and 2 areas and tested them on my a/b testing page, but as you can see at the link above, it doesn’t keep the two new areas separated into columns. I’ve gone ahead and added the two new widget areas to the functions.php file, but the formatting is still not correct. I tried to separate the two new home features areas (home-feature-1-l2 and home-feature-2-r2) into another div class, but it broke the page.

          #16991
          leah
          Customer

            I got it figured out! Just a little additional tweaking within the code to break the previous floats.

          Viewing 4 posts - 1 through 4 (of 4 total)
          • The topic ‘Duplication of Home Features 1 and 2’ is closed to new replies.