Force footer to load at the bottom of the page

QuestionsCategory: ExtraForce footer to load at the bottom of the page
Paul asked 2 years ago

Hello,
 
LOVE the website, I’m looking to force the footer to load at the bottom of the page for pages with less content, like the login/register pages etc.

Thank you

Abhishek replied 1 year ago

Go to Dashboard >> Divi >> Theme Options >> General >> scroll down to the bottom of the page and add this code bellow.

.home footer#main-footer {
position: initial !important;
}

Go to Dashboard >> Divi >> Theme Options >> integration >> Add code to the < head > of your blog and add the code below in the script tags, please visit the below URL for more.
http://imgur.com/a/EVj8X


jQuery(document).ready(function(){
var maincontent_height = jQuery("#main-content").height();

var window_height = jQuery(window).height();
if(maincontent_height < window_height){ jQuery('#main-footer').css({"position":"fixed","bottom":"0px" , "width":"100%"}); jQuery('body').css({"overflow":"hidden"}); } });

Your Answer

4 + 5 =

Subscribe To Our Newsletter For More Tips & Tricks on Elegant Themes

Subscribe To Our Newsletter For More Tips & Tricks on Elegant Themes

You have Successfully Subscribed!

Share This