javascript - Edit multiple html files - add string to <head> -


i have huge static html site , need add new script , css path @ end of each head section. there tool can me in ?.

or maybe can use php or js? i'm quite new in this.

thank help.

you use notepad++ add code every file.

open notepad++, open search -> replace (or ctrl + h)
go 'find in files' tab
find </head>
replace with:

<script src="script.js"></script> <link rel="stylesheet" rel="style.css"> </head> 

http://www.makeuseof.com/tag/how-to-find-and-replace-words-in-multiple-files/


you can use php includes.

have html file script , css in, example:

<script src="script.js"></script> <link rel="stylesheet" rel="style.css"> 

put html code want on every page, in 1 file , call it, say, include.html

then use php code in file want code:

<?php     include('include.html'); ?> 

Comments

Popular posts from this blog

php - Admin SDK -- get information about the group -

dns - How To Use Custom Nameserver On Free Cloudflare? -

Python Error - TypeError: input expected at most 1 arguments, got 3 -