Solved

Add code to every page at one time

Posted on 2006-06-28
6
167 Views
Last Modified: 2010-04-07
Ok, so the site is 98% done when marketing comes to me and say's "can we put this on every page?"  We're talking over 100 pages so I thought I would come to the experts to ask if there's a way I cut and paste code into every page right before the /body tag.  PLEASE HELP!!

Let's take a vote, marketing people need to be shot!!!
0
Comment
Question by:ibtaya
6 Comments
 
LVL 2

Author Comment

by:ibtaya
ID: 17003030
did I mention an easy way, I'm sure dreamweaver has had to deal with marketing people before so I'm hoping there is a built in function for this.
0
 
LVL 4

Accepted Solution

by:
ale_jrb earned 500 total points
ID: 17003135
There sort of is...

1. Open Dreamweaver.
2. Hold down "Ctrl" and press "F".
3. In the top options, set them to "Find in: Folder" (and choose the folder containing the pages) and "Search: Source Code".
4. In the "Find" box, choose something common to all pages where you want it, for example, the "<body>" tag.
5. In replace, type what you want to add, for example:

Find:
<body>

Replace:
<body>

<p>
This is some code.
</p>

6. It will check every single web file in that folder and replace all of them.

Hope this helps!
0
 
LVL 10

Expert Comment

by:KenAdney
ID: 17003247
In the Edit...Find and Replace, you change the default of Current Document to Folder, Selected Files in Site or Entire Current Local Site.
0
Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

 
LVL 2

Author Comment

by:ibtaya
ID: 17003262
what a doof of a question, I guess I was too mad about 12 hours before live and they bring this to me ... to think straight.  Thanks for the help!!!
0
 
LVL 4

Expert Comment

by:ale_jrb
ID: 17004806
No problems - happens to everyone!

Good luck with your site.

Ale_Jrb
0
 
LVL 70

Expert Comment

by:Jason C. Levine
ID: 17012056
Hi ibtaya,

For the next site you do, this situation is the argument for using a Template.  Had your site been template based, all you would have had to do is open the template, add the new content, and save the template.  DW would then go through every page on your site based on that template and update it for you.
0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

I still run into .cgi files every now and then. In some instances, I actually prefer the simplicity of a .cgi script to other options. Since I use DreamWeaver extensively, what I needed was a way to open .cgi scripts in Dreamweaver. And I wanted to …
Adobe Dreamweaver CS5 is a WYSIWYG web page editor that has advanced HTML, CSS, and Javascript rendering functionality and is probably the most well-known HTML editor available. Much of Dreamweaver's appeal centers around the Design View interfac…
This video shows how to quickly and easily add an email signature for all users on Exchange 2016. The resulting signature is applied on a server level by Exchange Online. The email signature template has been downloaded from: www.mail-signatures…
Email security requires an ever evolving service that stays up to date with counter-evolving threats. The Email Laundry perform Research and Development to ensure their email security service evolves faster than cyber criminals. We apply our Threat…

792 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question