Solved

Add code to every page at one time

Posted on 2006-06-28
6
166 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
Best Practices: Disaster Recovery Testing

Besides backup, any IT division should have a disaster recovery plan. You will find a few tips below relating to the development of such a plan and to what issues one should pay special attention in the course of backup planning.

 
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

ScreenConnect 6.0 Free Trial

Check out the updates in one game-changing release, ScreenConnect 6.0, based on partner feedback. New features include a redesigned UI that improves session organization and overall user experience. See the enhancements for yourself!

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
problems opening dw files with cs6 8 291
SWF won't scale? 4 524
Webpage Not Working in IE 27 358
Adobe Acrobat Pro top display text upside down? 5 129
For those who don't know, Adobe Dreamweaver is a popular commercial web editor that enables you to design, build and manage complex websites. The editor is a WYSIWYG (What You See Is What You Get) web editor, which means that you can create your web…
This article is very specific and is only intended to help if you are installing Dreamweaver 8 in a Windows 7 environment with Office 2007 installed.   I'm not sure why Microsoft tends to release OS' that should not be released but they do.  Windows…
This tutorial gives a high-level tour of the interface of Marketo (a marketing automation tool to help businesses track and engage prospective customers and drive them to purchase). You will see the main areas including Marketing Activities, Design …
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…

803 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