Thursday, 15 September 2011

javascript - call 2 different function.js file in wordpress, depending on page -



javascript - call 2 different function.js file in wordpress, depending on page -

i'm trying find how can load 2 different function.js depending of page.

when on "home", want load "function_2.js", , on other pages of website original "function.js".

i need alter in function.php can't figure out what...

can help me ?

thanks lot

check current url

get current url within handle_script() function , depending on path, add together function.js or function_2.js script variable.

javascript php wordpress

No comments:

Post a Comment