Trying to Link a button within the data base

Hello, I’ve added a database to my site, I want to add a button to each page that links to amazon. However, when I go to link it, the name of the button changes to the url. How can I add a button to the page, and have it just be named “BUY ON AMAZON” and link to that URL, instead of the whole url showing on the button?

Hopefully someone can walk me through it, I would truly appreciate it!

Hi Amy,

Can you please lets us know how you set the link. If you did it in the UI please provide a screenshot of the link connection you made.

Hello please see screen shots. Let me know if this is what you are referring too. Thank you.

In the Connect Button panel I can see that you connected the button’s label to the URL field. I think you meant to connect the link to the URL field instead.

When I go to “link connects too” it will not let me select the URL

I see your URL field is of type text. You need to change the type to URL.

Inside the database?

Correct.

THANK YOU!!!

One more question, is it at all possible to link a text from the same page, to another page within the site? So basically, I want their name to show up where it says author, but link to another page for that specific author within the site. Does that make sense?

Yes, It’s possible using code:
Here is example of how it should look:

import wixLocation from 'wix-location';
$w.onReady(() => {
    $w('#yourTextElement').onClick(()=> {
    wixLocation.to("string");
    })
});

This should be useful:

Good luck!
Roi