Streaming live at 10am (PST)

Adding javascript to a menu button to create a back link


#1

2 things:

(1) I can no longer see the Link Settings for the menu button of any of my portfolio pages like this one https://www.flowglobe.io/work/the-connect-live-movement

(2) One was able to implement the “back” javascript solution shown here less than a year ago How to setup back button?

I’ve provided an idea if you guys insist on making people using http in the Link Settings:
https://wishlist.webflow.com/ideas/WEBFLOW-I-912

Until then, is there a way to manually insert this somehow in the Custom Code section?..not having an easy way to do this, like there once was, is really frustrating, seriously.

Best,

Nathan

https://preview.webflow.com/preview/flowglobemedia-nathan-steele?preview=a78b85db5b213b8d77fda00db8d59ed4


#2

Hi @nathanphilsteele

  1. Menu buttons never had link settings, they only open a menu. You can use a link block instead of the Menu button if you want to create a link.

  2. You can use the code (see below) from that post in the url link field in the link settings.

    `javascript:history.back();

Just paste the code with the “`” at the start and press outside the field anywhere inside the settings panel.

Note that pressing enter will add an http:// which you do not want.

​Hope this is helpful.


#3

Thank you! @AnnaKelian

That did the trick!

Best,

Nathan


#4

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.