setting min height on the sidebar instead of the page content to prevent it from...
authorAnthony Talarico <talarico@gaslightmedia.com>
Wed, 19 Sep 2018 13:24:54 +0000 (09:24 -0400)
committerAnthony Talarico <talarico@gaslightmedia.com>
Wed, 19 Sep 2018 13:24:54 +0000 (09:24 -0400)
sections/interior-page.php
sidebar.php

index 020b70f..97df617 100644 (file)
@@ -14,7 +14,7 @@
             $title = $post->post_title;
         ?>
     </div>
-    <div class="row" data-equalizer>
+    <div class="row">
         <?php if(!$template == 'no-sidebar.php'){ ?> 
             <?php get_sidebar();?>
         <?php } ?>
index 416fbbb..82eb366 100644 (file)
@@ -13,7 +13,8 @@
             function sizeRow() {
                 var $col = $('.row #main-content');
                 var height = $col.height();
-                $col.siblings('.sidebar-container').height(height + 50);
+                // $col.siblings('.sidebar-container').height(height + 50);
+                $col.siblings('.sidebar-container').css("min-height", (height+50) + 'px');
             }
         }
         $('a[href*=#]:not([href=#])').click(function() {