Insert same meta tag in mulitple files

General questions about using TextPad

Moderators: AmigoJack, bbadmin, helios, Bob Hansen, MudGuard

Post Reply
Tim

Insert same meta tag in mulitple files

Post by Tim »

Hi,
I am new to textpad this being the second time I have tried to use it.
What I am trying to do is add a new meta tag to each page of a web site. Does anyone know of an easy way of doing this??
I thought I could do a find in files for an existing tag then do a replace with that tag & the new one included.
Any suggestions please. I don't fancy doing having to do a paste of this tag to every page.
Andreas

Re: Insert same meta tag in mulitple files

Post by Andreas »

Open all the files you want to add the meta element

Then replace the opening head tag (<head> - I hope the <> show up correctly) with the opening head tag plus your new meta element.

(as meta elements have to appear inside the head element this will place the meta element in the correct place - the order of meta elements is irrelevant in HTML).
Tim

Re: Insert same meta tag in mulitple files

Post by Tim »

Thanks for the quick reply Andreas.
Post Reply