Archived topic
Floating call and email buttons
1 reply · Started by Michael on March 26, 2019
I've had a request on a site to put floating Call and Email buttons at the bottom of mobile users screens like this example here https://www.domain.com.au/skyhouse-1-129-harrington-street-sydney-nsw-2000-12999709
What would be the best way of achieving this? Create the buttons in one of the after footer hooks and then use css? Or a plugin?
thanks,
Hi there,
some HTML in the after_footer hook would do the trick.
You can use the hide-on-desktop and hide-on-tablet classes that are built into GP.
CSS to fix the element to the bottom of the viewport. The hide on scroll would require some javascript. But instead you could just add some bottom margin to the body on mobile to same height as the Buttons.