Solved

Add code to every page at one time

Posted on 2006-06-28
6
170 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering 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: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering 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

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…
In this video, viewers will be given step by step instructions on adjusting mouse, pointer and cursor visibility in Microsoft Windows 10. The video seeks to educate those who are struggling with the new Windows 10 Graphical User Interface. Change Cu…
Michael from AdRem Software outlines event notifications and Automatic Corrective Actions in network monitoring. Automatic Corrective Actions are scripts, which can automatically run upon discovery of a certain undesirable condition in your network.…

617 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