From b917e815f05e14c60d2359ad087cb78afdc9e712 Mon Sep 17 00:00:00 2001 From: Anthony Talarico Date: Wed, 19 Sep 2018 09:24:54 -0400 Subject: [PATCH] setting min height on the sidebar instead of the page content to prevent it from spilling into the footer --- sections/interior-page.php | 2 +- sidebar.php | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/sections/interior-page.php b/sections/interior-page.php index 020b70f..97df617 100644 --- a/sections/interior-page.php +++ b/sections/interior-page.php @@ -14,7 +14,7 @@ $title = $post->post_title; ?> -
+
diff --git a/sidebar.php b/sidebar.php index 416fbbb..82eb366 100644 --- a/sidebar.php +++ b/sidebar.php @@ -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() { -- 2.17.1