[Support request] Floating call and email buttons

Home Forums Support [Support request] Floating call and email buttons

Home Forums Support Floating call and email buttons

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #850803
    Michael

    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,

    GeneratePress 2.2.2
    GP Premium 1.7.8
    #850856
    David
    Staff
    Customer Support

    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.

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.