Hi,

I am new to this theme and themeing in Drupal 7 so I appologize if this is a very noob question.

In previous D6 themes I was able to move the '$script' variable.

I do not see it in this theme.

Where is it?

Or is there a new way to add .js files to pages?

thanks

Comments

nevets’s picture

It is now in html.tpl.php. You can add js files using drupal_add_js(), 'scripts' in .info files or '#attached' in forms using the Form API

gtsopour’s picture

Assigned: Unassigned » gtsopour
Status: Active » Fixed
Issue tags: +corporate, +Corporate Clean Theme, +corporate clean

Hello SocialNicheGuru,

As nevets already said, $scripts (script tags necessary to load the JavaScript files and settings for the page) are loaded through html.tpl.php http://api.drupal.org/api/drupal/modules!system!html.tpl.php/7

If you need to override this template, you should copy html.tpl.php from modules/system/html.tpl.php to your theme directory (sites/all/themes/corporateclean) and clear the cache.

Especially for the CorporateClean theme, extra Javascript functions are loaded through template.php (sites/all/themes/corporateclean/template.php) file using drupal_add_js() function.

Thanks
/George

Automatically closed -- issue fixed for 2 weeks with no activity.