Streaming live at 10am (PST)

How to put a code on the button?


#1

Greetings Webflow coder!

I’m using Bablic for translating my website, and I plan to integrate the button on Nav bar.
So I read their tutorial here:

Short explanation, the staff said this:

Simply create a button and link it to bablic.redirectTo(‘XX’);
Replace XX with the desired language code

I created button, and put that link on the button, but wait which option should I choose?

image

I tried to put that on the URL, webflow add http:// into the code and it doesn’t work.
Where should I put that code on button?

Thank you!


#2

Actually the text you put in box Url: is not follow a link format. So, you have to use correct link format in this case.


#3

Thank you for your reply @johnmn
Can you explain more about correct link format


"Open in new tab" not working for File link
#4

Put a backtick charcter before your link

Like this:

`bablic.redirectTo('XX')

So that Webflow doesn’t add http://


#5

There are many occasions where you need code instead of proper links set on links. In those cases, use the backtick character.


#6

Yes it works!
thank you vincent! :star_struck: