Solved

Add code to every page at one time

Posted on 2006-06-28
6
165 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
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 
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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Create login page using dreamweaver cs6 and mysql (phpMyAdmin) 6 11,772
FINDNOCASE 2 549
JQuery form validation for bootstrap 1 189
need cgi page to refresh one time only after launch 11 132
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 Micro Tutorial will teach you how to censor certain areas of your screen. The example in this video will show a little boy's face being blurred. This will be demonstrated using Adobe Premiere Pro CS6.
Many functions in Excel can make decisions. The most simple of these is the IF function: it returns a value depending on whether a condition you describe is true or false. Once you get the hang of using the IF function, you will find it easier to us…

863 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

Need Help in Real-Time?

Connect with top rated Experts

24 Experts available now in Live!

Get 1:1 Help Now