Copy link to clipboard
Copied
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!
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 wind
...Copy link to clipboard
Copied
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?
Copy link to clipboard
Copied
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
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>
Copy link to clipboard
Copied
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
Copy link to clipboard
Copied
Thanks Jon!
This is the new destination link.
<a href="https://co.clickandpledge.com/default.aspx?wid=127639"> Click & Pledge</a>
Could I swap this and insert it?
Thank you again...I'm a newbie like this
Copy link to clipboard
Copied
So you are using a server side technology.
That can change things pretty drastically in what you do next, or it could be steps 1-5 from above for each page with the button.
You'll need to determine if the link you're trying to change is part of the site's overall menu system, or is it a one-off button that only appears a couple of times?
If it's part of the site's overall menu system, it's very likely to be generated by an include file (a file that the server adds to each page automatically due to an include code on the page).
If you look at one of your pages with the button and see something like...
<!-- #include virtual = "filename.inc" -->
...where the button "should" be locally, it would mean the button is part of an include file. You should only need to open that include file (whatever file shows for "filename.inc" above) and change the path to the donate page as I explained in my last post. You would then save and upload only the include file.
Copy link to clipboard
Copied
Thanks Jon!
I actually logged in a different way and clicked on "Error Page" and the following:
Maybe this is easier to fix?
I was thinking to put the 'new URL' in the "Go to" box below but not sure about what goes in the Directory box. (Only named: /www )
Copy link to clipboard
Copied
Personally I would just change the link defined in the button on the actual pages/include files of the site.
I'll let someone more familiar with using server admin panels to set redirects take this one.
Copy link to clipboard
Copied
Thank you Jon!
I'll see if I can follow your advice...just don't want to break the site (my fear).