Hi,

I'm trying to have my footer to actually act like a footer (sticky footer). I'm not very good with HTML/CSS but have tried flex and some other random "solutions" I found.

Is there any way to simply have the footer (copyright/footer-menu) stay at the bottom of the page even when there is not enough content to cover the page?

Comments

JoramD created an issue. See original summary.

Shreevasa Tantry’s picture

Status: Active » Needs review
StatusFileSize
new991 bytes

Please review the patch file.

JoramD’s picture

Apologies for the late reply.
The patch itself did not work, however after manually applying it worked. The only issue is that it now moves some of the content behind the footer.

EDIT: I fixed it by adding some padding-bottom to wrapper.
EDIT2: I was wrong that my padding-bottom fix worked, the footer does not move down with content using this.
EDIT3:
Just to clear my very confusing comments up:
I want a footer that sticks below the content and if there is not enough content sticks to the bottom of the viewport.

JoramD’s picture

Status: Needs review » Needs work
muskan kumari’s picture

Status: Needs work » Needs review
StatusFileSize
new1.52 KB

Hello,
I Have created a patch for this, Please review the attached patch file.

sharayurajput’s picture

Assigned: Unassigned » sharayurajput

Will review this patch

sharayurajput’s picture

Assigned: sharayurajput » Unassigned

after applying patch its showing error-
error: themes/drupal8_zymphonies_theme-8.x-1.4/drupal8_zymphonies_theme/css/custom-style.css: No such file or directory
error: themes/drupal8_zymphonies_theme-8.x-1.4/drupal8_zymphonies_theme/templates/layout/page.html.twig: No such file or directory

mayursolaskar’s picture

StatusFileSize
new1.23 KB
new2.17 KB
new2.15 MB

I applied & reviewed the patch #5, but it failed due to the incorrect path. I applied the changes manually and tested the functionality. During testing, I noticed that on small screens, the search widget and footer menu were overlapping, and when the content is small, the footer was not at the bottom of the page. I have addressed these issues and created a new patch. Please review it.