Adding js in Magento Header

I assumed the project root folder is in /public_html/magento/
Copy the js file into:

/public_html/magento/js/yourSubFolder

Tell about this to :

/public_html/magento/app/design/frontend/base/default/layout/page.xml
add this line to
 <block type=”page/html_head” name=”head” as=”head”>  
section
<action method=”addJs”><script>nhdGallery/scripts.js</script></action>

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s