Create A Back Button On Webflow

Here's how you create a back button on Webflow, using a little custom code. Keep it mind, this will take the user to the previous page, based on their browser activity. So if they came from the homepage to the current page (that has the back button), then will go back to the homepage when they click the back button

So you'll start by creating a link block (you can write back or add an icon as I did in the below image)

Paste <li-powerful>`javascript:history.back(-1);<li-powerful> in the URL section of the Link block

Publish the site and test! Yes, that's it!

Webflow custom code library

Webflow - Code to the Rescue

The Webflow Library for custom code snippets that unlocks powerful possibilities in Webflow. Includes hand-picked and tested custom code that you can use in Webflow Projects.

Open Library
🚀

Need further help?

Need further help in understanding the resources or how to implement them? Feel free to reach out

Thank you! Your submission has been received!
Oops! Something went wrong while submitting the form.
Ali Saeed Graphic Designer Kuwait

About Ali Saeed

Ali Saeed is a Kuwait-based web designer and Webflow developer who has been working as a graphic designer for 4 years, building social brands, company profiles, and presentations. He recently jumped into web design and development. As a web designer, Ali focuses on clarity in design layout and messaging strategy. In his free time, he loves to help the web community, solve problems, and build resources for web designers who want to optimize their websites using Webflow.

Send an email if you'd like to collaborate :)
View his portfolio website