Awaiting an answer Helix Framework

Footer stick to bottom

Asked by Seppe 3 years ago Last activity 4 months ago

Good morning

In PageBuilder there is the option to make the footer sticky to the bottom.
Is it in the Helix framework also possible?

If I edit the template, there is no such option with the footer.

17 replies

Seppe Asked this

found it... I guess

I added this extra CSS code, same as I used for PageBuilder...
Hopefully this is a correct way, if not... please advice :)

 .body-innerwrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}
#sp-main-body {
    margin-bottom: auto;
}
Pavel
3 years ago · edited

Hopefully this is a correct way

Hi Seppe . Yes it is

read the last tip on that documenation page

Hi Paul. I think this is not that needed in the aspect of this topic. And maybe this solution also should be added to documenation page. It makes footer always on bottom if page has no content

Seppe Asked this

@Paul

Thank you for the link
Fact is, I tried to search the documentation.
It would be usefull if words like 'sticky' result in pages in the documentation.
Now it just says "Sorry, but nothing matched your search terms. Please try again with some different keywords."

Seppe Asked this

Good morning
Is it possible that due to updates the above mentioned code is not working anymore?
For nox, I have put in Helix in the custom CSS, and I tried to put it in SPPB pages, also for the custom CSS.
neither one of those ways works.

Paul Frankowski Senior Staff

This is topic is 2 years old... probably a new documenation tip is needed in next days.

Paul Frankowski Senior Staff
1 year ago · edited

Try those variants

Example 1:

#sp-footer {
  position: sticky;
  bottom: 0;
  width: 100%;
  background-color: #555; /* Example background */
  z-index: 100;
}

Example 2: If Footer must be always visible, no matter how much the page is scrolled.

#sp-footer {
  position: fixed;
  bottom: 0; left:0;
  width: 100%;
  background-color: #555; /* Example background */
  z-index: 911;
}

yes, I added to Helix documenation.

Seppe Asked this

Good afternoon

It seems like there is a little delay in the code, before it's visible.
I tried browsers with a clean cache, but the CSS had no effect.
First it didn't work, but now after 2 days, the code seems to work

I managed to use this code:

#sp-footer { 
  position: fixed; 
  bottom: 0;
  left: 0;
  width: 100%;
}
Hans-Peter

Thank you for this information.
Unfortunately, this is not possible in my case.

Until Helix version 1.2.2 is running, the old CSS customizations work. (See above)
No longer after the update to 1.2.3.

Can you help me there?
What information do you need?
Thank you.

Paul Frankowski Senior Staff

0.o

Hans-Peter
1 year ago · edited

Hello,
what does your answer mean?

i have joomla version 5.3.2
Shaper_helixultimate version 2.1.2

when I update to 2.1.3, the old CSS code no longer works.

In the layout under MainBody I have two areas that serve as footer:

"Bottom" and "Footer"

I need "Example 1"

Seppe Asked this

Good morning. Just updated another website which uses the code for the footer from some years ago. It worked, until I did the last update for Helix Ultimate today. There is something in the source code that doesn't accept the old CSS to have to footer sticky on the bottom. So be aware you always need to update this custom CSS also.

Paul Frankowski Senior Staff

I don't think so. HTML code structure, ID names are the same.

Seppe Asked this

Good morning Paul
Please see in the hidden content the links
Until yesterday, everything was OK, today I did the update of the Helix Ultimate

Log in to reply.