- This topic has 7 replies, 4 voices, and was last updated 3 years, 1 month ago by David.
-
AuthorPosts
-
June 19, 2020 at 2:07 am #1333727Yugen
Hello,
I am having trouble creating a sticky footer bar similar to the ones on https://numerologysecrets.net/ and https://numerologynation.com/
I managed to create a bar but it doesn’t float and messed up everything so I deleted everything as I didn’t want to mess up the site.
Any help is appreciated, thank you.
June 19, 2020 at 3:41 am #1333828DavidStaffCustomer SupportHi there,
use a Hook Element to add your HTML to the the
after_footer
hookExample markup:
<div class="footer-notice"> <div class="notice-inner grid-container"> <!-- your HTML here --> </div> </div>
Then this CSS based on example:
.footer-notice { min-height: 60px; position: fixed; bottom: 0; left: 0; width: 100%; } body { margin-bottom: 60px; /* match min height of notice */ }
June 21, 2020 at 5:33 am #1336154YugenThanks for the help so here’s what I did for the HTML markup and CSS
<div class="footer"> <div class="notice-inner grid-container"> <strong><p style="font-size:20px">FREE GIFT:</strong> Numerology reading tailored to your birthday</p> <button class="button">Free Reading</button> </div>
CSS
.footer { position: fixed; left: 0; bottom: 0; width: 100%; background-color: #B22222; color: white; text-align: center; } body { margin-bottom: 60px; /* match min height of notice */ } .button { background-color: Gold; border: none; color: black; padding: 10px 20px; text-align: center; text-decoration: none; display: inline-block; margin: 4px 2px; cursor: pointer; border-radius: 4px; } .button:hover {background-color: #fdcd00;}
And this is how it currently looks like on my site: https://i.imgur.com/FulynNS.png
How do I make the bar smaller and get the button on the same row as the text instead of below it? Thanks again
June 21, 2020 at 6:04 pm #1336788TomLead DeveloperLead DeveloperHi there,
You could try this as your HTML:
<div class="footer"> <div class="notice-inner grid-container"> <strong><p style="font-size:20px">FREE GIFT:</strong> Numerology reading tailored to your birthday. <button class="button">Free Reading</button></p> </div> </div>
June 22, 2020 at 2:38 am #1337090YugenThanks for the help!
June 22, 2020 at 9:36 am #1337740TomLead DeveloperLead DeveloperNo problem 🙂
February 23, 2021 at 8:33 am #1669400RostyslavHello,
How can I create exactly the same sticky bar for the bottom like in this image: https://ibb.co/hW6x8Z1
It should just appear in mobile and tablet view.
Is there any tutorial on how can I achieve that bar with 3 boxes each with text and icon and linked?
(sorry for my bad English)
Thank you!
February 23, 2021 at 8:51 am #1669429DavidStaffCustomer SupportHi there,
there is no specific tutorial – if you want to create a new topic we can give you some guidance
-
AuthorPosts
- You must be logged in to reply to this topic.