- This topic has 9 replies, 4 voices, and was last updated 3 years, 2 months ago by
Ying.
-
AuthorPosts
-
February 9, 2023 at 8:50 am #2527451
Mark
Similar to app styled bottom bars like you can see on mobile here: https://monstermortgage.ca/
There’s 2 buttons that are sticky to the bottom on mobile. I’d like to recreate this in generate press but am unsure how to.
Any ideas?
February 9, 2023 at 10:59 am #2527624Ying
StaffCustomer SupportHi Mark,
1. Go to appearance > elements, and create a new block element.
2. Add the 2 buttons you want to the block element, and add
hide-on-desktophide-on-tabletclass to the button block:
https://wordpress.com/support/wordpress-editor/adding-additional-css-classes-to-blocks/3. Set the block element type to
hook, and selectafter_footerhook.4. Set the block element location depending on your needs.
Once that’s done, we can have another look and provide custom CSS for that.
Let me know!
February 10, 2023 at 3:26 pm #2528954Mark
Ok I’ve done that!
What’s the custom CSS that I need to add?
February 11, 2023 at 6:05 am #2529356David
StaffCustomer SupportHi there,
can you share the link to your site where we can see what you added ?
February 12, 2023 at 9:04 am #2530502Mark
https://alexlavender.flywheelstaging.com/
Note that I actually do not see the block on mobile… but I do see it on desktop. (even though I added the “hide on desktop” and “hide on tablet” settings turned on).
February 12, 2023 at 7:21 pm #2530895Fernando Customer Support
Hi Mark,
So we can take a closer look at your setup, can you provide admin login credentials?
Please use the Private Information field for this: https://docs.generatepress.com/article/using-the-premium-support-forum/#private-information
February 23, 2023 at 9:19 am #2544297Mark
Thanks for the help! I’ve sent private info.
Appearance > Elements > Mobile Sticky Bottom Bar
that’s the element I’m trying to get as a mobile only bottom app style bar like the Monster Mortgages website.
February 23, 2023 at 10:38 am #2544385Ying
StaffCustomer SupportHi Mark,
Your settings are all correct.
Try adding a CSS class to the buttons block, eg.
sticky-buttons, then add this CSS:.site-footer + .gb-button-wrapper.sticky-buttons { position: fixed; bottom: 0; left: 0; right: 0; }February 23, 2023 at 1:32 pm #2544567Mark
Added! It now is hidden on desktop & tablet, and appears on mobile.
However it does not seem to be sticky on mobile?
February 23, 2023 at 3:18 pm #2544654Ying
StaffCustomer SupportThe class is
sticky-buttons, it seems you’ve addedsticky-buttonsclass to the block, missed thes🙂 -
AuthorPosts
- You must be logged in to reply to this topic.