Skip to main content
Known Participant
April 19, 2017
Answered

How to Change the URL of a button on a website?

  • April 19, 2017
  • 1 reply
  • 803 views

This may seem like an easy fix but not well-versed in this area and needing assistance ASAP.

Someone from our organization deleted a donor page to give donations and the button is coming up with an error page.

I do have the new URL that was created but need to insert this so it points to the right page. (In Header, etc)

Please help (simple terms if possible)

Thank you!

This topic has been closed for replies.
Correct answer Jon Fritz

That code is not a complete html page, it's missing a closing </head> tag and the entire <body> and it's contents. So something isn't right there. Looks like someone might have gotten a little wild with Cut/Paste and accidentally saved a very broken page.

To change the destination of a button on any given page, you'll need to...

1. Open a page that has the button going to the wrong place

2. Click the button in Design View to highlight it

3. Change the Link field to the new URL in the Properties window (Window > Properties or Ctrl + F3 if it's not open)

4. Save the changed page

5. Highlight each changed page in the Files window and click Put (the up arrow icon)

Or, likely a much easier fix...

1. Open the existing destination page locally

2. Repair that page
3. Highlight that current destination page in the Files window and click Put

1 reply

Jon Fritz
Community Expert
Community Expert
April 19, 2017

Do you have a Site Definition for this site in Dreamweaver already, or are you completely new to the program?


Does the site use any server-side scripting like PHP or ASP?

kpmiAuthor
Known Participant
April 19, 2017

Thank you Jon...there is site definition.

Maybe I need to log in to a different entry way?

Here is the page that the error is going to: If this helps?

<!DOCTYPE html>

<html lang="en">

  <head>

  <meta charset="utf-8">

<meta http-equiv="refresh" content="0; URL='donate.php'" />

  <script>

  (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i=i||function(){

  (i.q=i.q||[]).push(arguments)},i.l=1*new Date();a=s.createElement(o),

  m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)

  })(window,document,'script','//www.google-analytics.com/analytics.js','ga');

  ga('create', 'UA-69025450-1', 'auto');  ga('send', 'pageview');

  setTimeout(“ga(‘send’, ‘event’, ‘unbounce’, ’15_sec’)”, 15000);

</script>

</div></body>

  </html>

Jon Fritz
Community Expert
Jon FritzCommunity ExpertCorrect answer
Community Expert
April 19, 2017

That code is not a complete html page, it's missing a closing </head> tag and the entire <body> and it's contents. So something isn't right there. Looks like someone might have gotten a little wild with Cut/Paste and accidentally saved a very broken page.

To change the destination of a button on any given page, you'll need to...

1. Open a page that has the button going to the wrong place

2. Click the button in Design View to highlight it

3. Change the Link field to the new URL in the Properties window (Window > Properties or Ctrl + F3 if it's not open)

4. Save the changed page

5. Highlight each changed page in the Files window and click Put (the up arrow icon)

Or, likely a much easier fix...

1. Open the existing destination page locally

2. Repair that page
3. Highlight that current destination page in the Files window and click Put