Title: Which header template for javascript file?
Last modified: August 20, 2016

---

# Which header template for javascript file?

 *  [tomwood](https://wordpress.org/support/users/tomwood/)
 * (@tomwood)
 * [13 years, 3 months ago](https://wordpress.org/support/topic/which-header-template-for-javascript-file/)
 * I want to place some Flash SWFs in WordPress Pages. I see the following templates
   in the Editor:
 * header-front.php
    header-html5.php Header (header.php)
 * Since I’m lazy, I usually go find the </head> tag and put the link to the .js
   file just above it. But I don’t know which of these files is serving the header
   to the WordPress Page template. And, header-front has the closing < /head> tag
   in TWO places.
 * Where should I place the link to a .js Javascript file so that it loads with 
   a WordPress Page?
 *  ` <script type=”text/javascript” src=”www.mysite/folder/swfobject.js”></script
   >
    <script type=”text/javascript”> swfobject.registerObject(“myId”, “9.0.115”);
   </script>`
 * Thanks!

Viewing 1 replies (of 1 total)

 *  Theme Author [nobita](https://wordpress.org/support/users/nobita/)
 * (@nobita)
 * [13 years, 3 months ago](https://wordpress.org/support/topic/which-header-template-for-javascript-file/#post-3495465)
 * Hi tomwood
 * Raindrops default setting header ‘header-html5.php’
 * Template page-templates/front-page.php use ‘header-front.php’
 * Raindrops support document type ‘xhtml1.0’ ‘use header.php’
 * Add script ,Most easy way is use custom field.
 * 1. create custom field key ‘meta’
    2. value paste your script code.
 * Please try custom field key name ‘css’, ‘javascript’.
 * Thank you.

Viewing 1 replies (of 1 total)

The topic ‘Which header template for javascript file?’ is closed to new replies.

 * ![](https://i0.wp.com/themes.svn.wordpress.org/raindrops/1.700/screenshot.png)
 * raindrops
 * [Support Threads](https://wordpress.org/support/theme/raindrops/)
 * [Active Topics](https://wordpress.org/support/theme/raindrops/active/)
 * [Unresolved Topics](https://wordpress.org/support/theme/raindrops/unresolved/)
 * [Reviews](https://wordpress.org/support/theme/raindrops/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [nobita](https://wordpress.org/support/users/nobita/)
 * Last activity: [13 years, 3 months ago](https://wordpress.org/support/topic/which-header-template-for-javascript-file/#post-3495465)
 * Status: not resolved