Using equalizer for frontpage events & content
authorLaury GvR <laury@gaslightmedia.com>
Fri, 29 Jul 2016 13:40:31 +0000 (09:40 -0400)
committerLaury GvR <laury@gaslightmedia.com>
Fri, 29 Jul 2016 13:40:31 +0000 (09:40 -0400)
Frontpage events have greater height than the adjacent content.
I added data-equalizer to ensure they remain the same.

front-page.php

index 94d150f..721e53f 100644 (file)
         </div>
     </div>
     <div id="content-wrapper">
-        <div class="row">
-            <div id="main-content" class="small-12 medium-8 columns">
+        <div class="row" data-equalizer>
+            <div id="main-content" class="small-12 medium-8 columns data-equalizer-watch">
                 <?php if(have_posts()) : while(have_posts()): the_post();?>
                 <?php the_content();?>
                 <?php endwhile; else:?>
                 <p><?php _e('Sorry, no posts yet');?></p>
                 <?php endif;?>
             </div>
-            <div class="small-12 medium-4 columns small-text-center medium-text-left">
+            <div class="small-12 medium-4 columns small-text-center medium-text-left data-equalizer-watch">
                 <?php get_sidebar(); ?>
             </div>
         </div>