adding custom equalizer to the sidebar since foundation isn't working
authorAnthony Talarico <talarico@gaslightmedia.com>
Mon, 17 Sep 2018 15:09:07 +0000 (11:09 -0400)
committerAnthony Talarico <talarico@gaslightmedia.com>
Mon, 17 Sep 2018 15:09:07 +0000 (11:09 -0400)
sidebar.php

index fe60dd6..62c7a0a 100644 (file)
@@ -1,9 +1,20 @@
-
-
- <div class="show-for-large-up sidebar-container large-3 columns" data-equalizer-watch>
+<div class="show-for-large-up sidebar-container large-3 columns">
     <?php glm_side_menu(); ?>
     <div class="" id="sidebar-contact">
         <?php global $post; ?>
         <?php echo get_field("contact_info", $post->ID); ?>
     </div>
 </div>
+<script>
+    jQuery(function($){
+        if( $('.sidebar-container').length ){
+            sizeRow();
+
+            function sizeRow() {
+                var $col = $('.row #main-content');
+                var height = $col.height();
+                $col.siblings('.sidebar-container').height(height + 50);
+            }
+        }
+    })
+</script>
\ No newline at end of file