Click to See Complete Forum and Search --> : how to automate changing the BG to css on 100 pages?


Kbee
02-26-2007, 11:46 AM
Hello

I've inherited a web site that uses tables for the BG which also aligns the center content

http://www.enhancedwireless.net/index.html

I've started, by hand, per page, to replace the BG tables with a gradient jpg, using css (also changing various header bars to a gradient)

So my question is very basic - I've got just under 100 pages, I've been changing each page individually,

http://www.enhancedwireless.net/Tester.shtml

and am only 1/4 of the way complete...so how can I automate this process?

Would I make a template, if so, then how do I make the entire site link to that template?

Thanks

KB

using DW8

ryanbutler
02-26-2007, 12:22 PM
You could do a find/replace through Dreamweaver for BG and replace to gradient. You then could do a find/replace between the opening and closing <head> tags to link to your style sheet.

That should automate the process a bit.

Kbee
02-26-2007, 03:19 PM
Thanks for the reply - yes I tried that but strangely it only affected the one page I had open (each time I tried it). I did make sure that I selected "entire local site" and code.

KB

ryanbutler
02-26-2007, 04:48 PM
Make sure all pages are open and in the find/replace select: Find in "Open Documents"

Kbee
02-26-2007, 05:52 PM
Interesting, you mean I have to have open all 100 or so pages - surely DW 8 doesn't make you do that. I thought if I select "in local site" that it would hit every page, open or not. But maybe I misunderstand.

KB

ryanbutler
02-27-2007, 10:20 AM
No you can do that as well. I just did it in a massive site defined in Dreamweaver and it worked fine.

landslide
03-25-2007, 11:59 PM
You can open one of the then also Highlight all the pages on the files manu then go to find and replace and then scroll down to replace in selected files and then try it. it will replace all of the code for those pages only.