- This topic has 9 replies, 3 voices, and was last updated 4 years ago by
Fernando.
-
AuthorPosts
-
June 18, 2022 at 7:51 am #2257257
Tan
Hi there,
I follow this video. So, how to add sticky social buttons at the bottom of the page, but only on mobile?
Thank you!
June 18, 2022 at 11:31 am #2257414Ying
StaffCustomer SupportHi Tan,
You’ll need to change the CSS a bit.
Can you link me to your site where I can see the social icons?
June 18, 2022 at 4:40 pm #2257582Tan
Ok. You can see it here.
June 19, 2022 at 11:17 am #2258162Ying
StaffCustomer SupportDo you want the icons horizontally aligned at the bottom of the mobile screen?
https://www.screencast.com/t/31M7NmxYrWIf so, try the following the steps:
1. Set both the outer container and inner container to
full widthinstead of contained 50px width.2. select the
buttonsblock, and uncheck thestack verticallyoption.3. Change the CSS to:
.sticky-social-icons { position: fixed; bottom: 0; left: 0; right: 0; }4. Remove the
hide-on-mobileclass from the container, and addhide-on-desktopclass to the container.I noticed that you are using different icon sizes and spacing, make sure you adjust them after the 4 steps are done.
June 20, 2022 at 12:07 am #2258494Tan
Thank you Ying.
I want 2 versions, one for mobile (2 icons on bottom), one for desktop and tablet (4 icons on bottom right corner)
After following your instructions, I made another version for mobile. But it doesn’t like your screenshot 🙁
Could you check it again?
June 20, 2022 at 12:22 am #2258505Fernando Customer Support
Hi Tan,
To clarify, did you uncheck the stack vertically option of the Buttons Block for mobile view? Example: https://share.getcloudapp.com/GGuK2oAX
Kindly let us know.
June 20, 2022 at 12:55 am #2258537Tan
Yes. I did. And I checked the Fill Horizontal Space on mobile
June 20, 2022 at 1:16 am #2258557Fernando Customer Support
I see. Thank you for confirming.
Can you check if you’ve set the Container Block’s Container Width to full? Example: https://share.getcloudapp.com/7Ku6bmlr
Right now, upon checking, I believe it’s set to just
50px. Kindly try setting both Container and Inner Container widths to full.Kindly let us know how it goes.
June 20, 2022 at 1:33 am #2258564Tan
I think I know where the problem is. Because I copy the code of Leo and use it for 2 versions so when I customize, it is still the same on the frontend.
I rebuilt the mobile version from scratch, and it worked after following Ying’s guide.
Thank you so much for your help! 🙂
June 20, 2022 at 1:37 am #2258569Fernando Customer Support
I see. Glad you were able to make it work! You’re welcome!
-
AuthorPosts
- You must be logged in to reply to this topic.