How To Create A Scroll To Top Button In FG Funnels
The video and article below will walk you through how to create a button that scrolls to the top of the page in any funnel or website in your FG Funnels account.
Unicode Arrow:
⇧
CSS:
.scrollToTop.midSection { max-width: fit-content; right: 20px !important; }
Creating A Scroll To Top Button In Your Funnels And Websites
- Accessing Page Builder
- Open the page builder in a funnel or website in your FG Funnels account.
- Adding a Small Width Section
- Scroll to the bottom of the page.
- Click on the plus sign in the top left corner, below the Back button, to add a new element.
- Select a small section from the sections menu on the left.
- Drag the section to the bottom of the page.
- Adding a Button Element
- Add a one-column row within the section.
- Insert a button element.
- Customize the button's background color, font size, and padding.
- Change the text to indicate "scroll to top" or choose a Unicode arrow for visual appeal.
- Setting Button Actions
- Configure the button to scroll to a specific element.
- Select the top section or any desired section to scroll to.
- Styling the Section
- Adjust the sticky option to stick to the bottom on scroll.
- Modify the width of the section to small.
- Add the custom class ScrollToTop to the button's Custom Classes field.
- Applying Custom CSS
- Access the custom CSS option.
- Paste in CSS code to customize the appearance of the scroll-to-top element.
- Finalizing and Previewing
- Adjust padding and spacing as needed.
- Save the changes.
- Preview the page to ensure the scroll-to-top button is functional and visually appealing.
- Test the functionality on both desktop and mobile devices.
- Verify that clicking the button scrolls the page back to the top.