Adding JS & CSS to a specific page?
Permalink 1 user found helpful
How can I add a JS file and some CSS only to a particular page which otherwise also shares its template with other pages? So far I've come up with these ideas -
1. if block in the template (sounds like a bad workaround)
2. create separate template (overhead of another template)
both these ideas sound pretty hacky. Is there a better way to do this?
Thanks.
1. if block in the template (sounds like a bad workaround)
2. create separate template (overhead of another template)
both these ideas sound pretty hacky. Is there a better way to do this?
Thanks.
dont think it can help u~
if you mean for specific page, you can use the pID for logic