0
Welcome Guest! Login
0 items Join Now

Custom JavaScript in a RocketTheme

  • Custom JavaScript in a RocketTheme

    Posted 12 years 4 months ago
    • Javascript Help!!! :evil:
      Does anyone know how to get some added JavaScript in to a Wordpress RocketTheme?
      Right now I have a live site (using the Juxta theme) with a slideshow in the header that is running flash. Here is the link: http://www.raftarizona.com/ . I obviously would like to convert this to HTML5 or Jquery.

      I took a stab at converting my FLA file to HTML5 and that worked fine
      having trouble getting the JavaScript to run. Here is the link to my development site http://67.43.2.70/~arizonar/

      Where to I need to put my Javascript files? How to I call them in
      via the header.php/index.php/functions/php??? :cry:

      Happy holidays to all you RocketTheme gurus. Any advice you have would be greatly appreciated.

      C. Parker
    • Shazdeh's Avatar
    • Shazdeh
    • Elite Rocketeer
    • Posts: 4984
    • Thanks: 29

    Re: Custom JavaScript in a RocketTheme

    Posted 12 years 4 months ago
    • Hi,
      to add an script file to the page simply copy the .js file to /js directory in your theme and then open up index.php file and add this line to the head section between the php template tags:
      $gantry->addScript("customscript.js");
      and that's it. Now that js file is added to the page.
    • Please don't PM unless requested ;)
      Consider using the custom stylesheet for all your CSS customizations: gantry-framework.org/documentation/wordp...custom_stylesheet.md .
      Please provide the URL to the issue.
      And please mark the thread as solved if the issue is resolved.

Time to create page: 0.047 seconds