Jump to content
Sign in to follow this  
gopic

Adding Javascript files

Recommended Posts

gopic

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

Hello gopic, Which theme are you using, please?

Share this post


Link to post
Share on other sites
gopic

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

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

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

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

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

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

Sorry kastelic that seems to not be working

Share this post


Link to post
Share on other sites
Kate

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

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
gopic

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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this  

×