Jump to content

Archived

This topic is now archived and is closed to further replies.

jacobtippett

Get the footer to stick to the bottom of the page

Recommended Posts

jacobtippett+    1
jacobtippett

I am trying to get the footer to stick to the bottom of the page when in a browser stretched taller than the content of the page. It looks great on pages that have plenty of content, but for the splash page, it shows the BG image below the footer as well.

 

What it looks like in a larger browser: [attachment=1568:Screen Shot 2013-09-24 at 5.04.09 PM.jpg]

 

What I want it to do when in a larger browser: [attachment=1569:Screen Shot 2013-09-24 at 5.04.18 PM.jpg]

(Stick to the bottom of the page when the content does not exceed the browser height)

 

Any ideas?
 

Site: therefinerychurch.org

 

Thanks!

Share this post


Link to post
Share on other sites
jacobtippett+    1
jacobtippett

Hey Rob, I tried putting it in the custom CSS and it still is not sticking to the bottom on larger browsers...

Share this post


Link to post
Share on other sites
Rob    547
Rob

Jacob,  I'm not sure why.  That CSS shouldn't be affected by the browser/monitor size.

 

You may need a developer for this.  Unfortunately, I'm not one (wish I were in these cases).


Former PageLines Moderator, Food Expert and Raconteur

Share this post


Link to post
Share on other sites
jacobtippett+    1
jacobtippett

Rob, I promise you that when I tried it the first time it did not work... but I tried it again today and it did! 

 

Ha, I have no idea what I did wrong, but it is working great now. Thank you!  :goodjob:

Share this post


Link to post
Share on other sites
Rob    547
Rob

Hi Jacob,  I'm so happy it worked!  Likely, it was caught in a cache, and when the cache processed/renewed, the change was implemented and became visible.  The mysteries of the Net, or as my generation called it, the ghost in the machine.

 

If you have a cache plugin, and you make changes to your site, make sure to use the plugin's settings to clear the cache so that you can see the changes immediately, and then refresh your browser.  This will help you in future. :)


Former PageLines Moderator, Food Expert and Raconteur

Share this post


Link to post
Share on other sites
jacobtippett+    1
jacobtippett

I appreciate it Rob. Would you or anyone else happen to know how to adjust the code so that the footer only sticks to the bottom when it is not interfering with other content?

Share this post


Link to post
Share on other sites
Rob    547
Rob

Jacob,

 

Now you're getting into dangerous territory.  Essentially, you're asking for 'conditionals', which will require custom coding by a developer.  By 'conditionals' I mean that you're setting up a scenario where under certain conditions, X is done and under others, it's not.


Former PageLines Moderator, Food Expert and Raconteur

Share this post


Link to post
Share on other sites
jacobtippett+    1
jacobtippett

Then I will run far from this scenario, and work with it being fixed. Thank you for the warning, Rob.

 

Thank you!

Share this post


Link to post
Share on other sites
Rob    547
Rob

You're very welcome Jacob!


Former PageLines Moderator, Food Expert and Raconteur

Share this post


Link to post
Share on other sites

  • Similar Content

    • JawDesigns
      By JawDesigns
      Hi everyone,
      Flywheel have reported errors on my clients site 'www.racewaredirect.co.uk' and it's not loading. Can someone please provide some information on how to fix this? The site has never experienced these issues before.
      Thanks,
      James Wilson
    • MissT
      By MissT+
      Hi there,
      I've got an issue with 3 websites built with DMS since I migrated them from http to https that I need help with please.
      When any changes are made - e.g. new posts added or existing posts amended - certain sections of the live site seem to break e.g. image headers hang and don't load (b/g on canvas section), sliders hang and don't load (Revslider), flipper section doesn't load.
      Logging in and then clicking 'Edit the site using DMS' seems to fix the problem. Often if I try to open up another browser window to edit the site / re publish I'm unable to as the page wont load / hangs while trying to load.
      Any ideas how to fix this? On a couple of the sites I've installed a caching plugin as I thought it might be a loading speed issue but it's still happening.
      Website URL's can be provided privately.
      Many thanks in advance.
    • jeomiland
      By jeomiland+
      Hi
      I found this topic
      which talks about a similar issue I am having, but a little different. Hope someone can help me out.
      Best way to see the problem is to view http://cassclayton.com/ on Safari (Mac) compared to Firefox or Chrome. You will see the banner just under the fixed menubar has a gap between the menubar and top of the banner. Looking at Inspector, I found:
      <div class="fixed-top-pusher" style="height: 62px;"></div>
      <script> jQuery('.fixed-top-pusher').height( jQuery('.pl-fixed-top').height() ) </script>
      and indeed it seems the jquery is not always working consistently. For instance, if you simply refresh the page in Safari, it will loose the gap and all looks fine, so is it a browser cache issue that is interacting with the jquery? I do have W3 Total Cache installed. There must be a way to tell the code to make sure jquery is up and running and available to do it's majic?
      And perhaps there is just a better way to do this banner? Originally I tried several DMS sections and used the banner image as background, etc... Kept running into problems with resizing and the left/right parts of the image were getting chopped off. It is important the whole image show, so currently I just use a NextBox section with this code:
      <img src="[pl_site_url]/wp-content/uploads/2015/12/CassClayton-blues-tribute-banner.jpg" width="100%" />
      and it looks the way it should. Is there a better way to place a banner graphic under a fixed navbar and make sure the whole banner graphic displays regardless of screensize?
       
    • oseehys
      By oseehys+
      Hello There,
      So i want to use platform 5 and DMS sections on a single page, i am using a child theme with pinspro as my main theme and i activated platform 5, the only problem am having so far is the fixed option, my navbars are not aligning to their default size, and it will be great if platform 5 header and footer section will function, has anyone used this option, how can i make the best use of platform 5 and DMS on a site
      Cheers
×