gopic 0 Report post Posted August 8, 2011 Hi I am trying to figure out what folder do I upload custom jquery and javascript files to and have one of the pages access these js files. I built css table with some custom jquery sliding animations..css in good to go but I cannot get the javascript files active. What do I do? Thanks! Share this post Link to post Share on other sites
Kate 3 Report post Posted August 8, 2011 Hello gopic, Which theme are you using, please? Share this post Link to post Share on other sites
gopic 0 Report post Posted August 8, 2011 pagleines platform pro Share this post Link to post Share on other sites
gopic 0 Report post Posted August 8, 2011 pagelines* Share this post Link to post Share on other sites
Simon 248 Report post Posted August 8, 2011 To load js files into the page there are several ways to do it. This howto is written by a wordpress core developer: http://scribu.net/wordpress/optimal-script-loading.html Share this post Link to post Share on other sites
gopic 0 Report post Posted August 8, 2011 yes I have been reading up on that but I am confused on where to put it exactly. Share this post Link to post Share on other sites
gopic 0 Report post Posted August 8, 2011 I have about 8 js files that need to be loaded up for a single page. Share this post Link to post Share on other sites
kastelic 6 Report post Posted August 8, 2011 You can really put it anywhere on your site's server and link to it with an absolute url. My suggestion would be to create a folder in your theme directory ( like platformbase/js ) and upload your js files into it via FTP. Then put the link to your scripts in the Custom Code -> Footerscripts section. Share this post Link to post Share on other sites
gopic 0 Report post Posted August 8, 2011 Hi kastelic so under my theme folder create js right? then call them in footer section? Share this post Link to post Share on other sites
gopic 0 Report post Posted August 8, 2011 Sorry just need specfic direction...so they are in a folder named js so I just need to call them for this one page. Share this post Link to post Share on other sites
kastelic 6 Report post Posted August 8, 2011 If you only need to call them for one page, and you don't want to mess with PHP and hooks, then you can call the scripts from that page, although its not best practice. Go to edit your page, switch to HTML mode, and at the top, call your scripts like this: Share this post Link to post Share on other sites
gopic 0 Report post Posted August 9, 2011 Sorry kastelic that seems to not be working Share this post Link to post Share on other sites
Kate 3 Report post Posted August 9, 2011 Actually, you can insert the JS call into Settings->Custom Code, either into "Header Scripts" or "Footer Scripts and Analytics". Share this post Link to post Share on other sites
gopic 0 Report post Posted August 9, 2011 Is it possible that the platform is not allowing them to go through? I see them when I view source but other then that they are not taking any effect. Share this post Link to post Share on other sites
kastelic 6 Report post Posted August 9, 2011 link to site? Share this post Link to post Share on other sites
gopic 0 Report post Posted August 15, 2011 I ended up just using an iframe, not the best solution to this. But adding javascript files just doesn't work. Share this post Link to post Share on other sites