Title: Adding Java Script.
Last modified: August 19, 2016

---

# Adding Java Script.

 *  Resolved [Inv_Trdr](https://wordpress.org/support/users/inv_trdr/)
 * (@inv_trdr)
 * [16 years, 10 months ago](https://wordpress.org/support/topic/adding-java-script/)
 * Is it possible to add java script widgets to a page or on the left in the Menu?
   Also can you add a date and time stamp in Java Script to a page also?
    Thank 
   you.

Viewing 10 replies - 1 through 10 (of 10 total)

 *  [ptvguy](https://wordpress.org/support/users/ptvguy/)
 * (@ptvguy)
 * [16 years, 10 months ago](https://wordpress.org/support/topic/adding-java-script/#post-1157105)
 * You need to explain a little more about what you’re trying to do. A standard 
   Text Widget can be used to place a JavaScript element in the sidebar, but it 
   sounds like you’re talking about playing with the header.
 *  [esmi](https://wordpress.org/support/users/esmi/)
 * (@esmi)
 * [16 years, 10 months ago](https://wordpress.org/support/topic/adding-java-script/#post-1157107)
 * > Is it possible to add java script widgets to a page or on the left in the Menu?
 * Only if the page or menu template is widget-capable.
 * > Also can you add a date and time stamp in Java Script to a page also?
 * Should be possible using a custom page template.
 * [http://codex.wordpress.org/Pages#Creating_Your_Own_Page_Templates](http://codex.wordpress.org/Pages#Creating_Your_Own_Page_Templates)
 *  Thread Starter [Inv_Trdr](https://wordpress.org/support/users/inv_trdr/)
 * (@inv_trdr)
 * [16 years, 10 months ago](https://wordpress.org/support/topic/adding-java-script/#post-1157269)
 * I have a Time and date stamp in Javascript I want to add to each page at the 
   beginning. Also, how do you add a widget like and ad in javascript to the menu
   items on the left or right of a page?
    Thank you.
 *  [esmi](https://wordpress.org/support/users/esmi/)
 * (@esmi)
 * [16 years, 10 months ago](https://wordpress.org/support/topic/adding-java-script/#post-1157304)
 * 1. Edit page.php and either include a call to your external javascript or include
   the script itself.
 * 2. Use a Text widget as ptvguy suggested.
 *  Thread Starter [Inv_Trdr](https://wordpress.org/support/users/inv_trdr/)
 * (@inv_trdr)
 * [16 years, 10 months ago](https://wordpress.org/support/topic/adding-java-script/#post-1157349)
 * Where do I find the Text Widget to add Javascript in a page, post or Menu Item?
   
   Thank you.
 *  [esmi](https://wordpress.org/support/users/esmi/)
 * (@esmi)
 * [16 years, 10 months ago](https://wordpress.org/support/topic/adding-java-script/#post-1157364)
 * Admin/Appearance/Wdigets
 *  Thread Starter [Inv_Trdr](https://wordpress.org/support/users/inv_trdr/)
 * (@inv_trdr)
 * [16 years, 10 months ago](https://wordpress.org/support/topic/adding-java-script/#post-1157379)
 * I have a javascript for an ezine articles author. I am trying to put that in 
   a page so that it displays the widget properly. How do I do that?
    Thanks.
 *  Thread Starter [Inv_Trdr](https://wordpress.org/support/users/inv_trdr/)
 * (@inv_trdr)
 * [16 years, 10 months ago](https://wordpress.org/support/topic/adding-java-script/#post-1157382)
 * The Admin/Appearance/Widgets is for the sidebar. How do I use it to add javascript
   to a page or post? How does it work in a Menu item if I want to add a new Menu
   Box with the javascript in it?
    Thanks.
 *  [ptvguy](https://wordpress.org/support/users/ptvguy/)
 * (@ptvguy)
 * [16 years, 10 months ago](https://wordpress.org/support/topic/adding-java-script/#post-1157386)
 * Depending on your theme and the specific placement you want, you’re probably 
   going to have to go into the PHP files themselves for this. (single.php, page.
   php, header.php, etc.) The [Snippets](http://wordpress.org/extend/plugins/snippets/)
   plugin might help you a little.
 *  Thread Starter [Inv_Trdr](https://wordpress.org/support/users/inv_trdr/)
 * (@inv_trdr)
 * [16 years, 10 months ago](https://wordpress.org/support/topic/adding-java-script/#post-1157437)
 * The ezine articles widget in javascript is pretty wide for me to be able to put
   in on the menu. That is why I wanted to place it on a page or post. In Joomla
   you turn off WYSIWYG to insert javascript on a page. Wish WP would have something
   similar too.
    Thanks.

Viewing 10 replies - 1 through 10 (of 10 total)

The topic ‘Adding Java Script.’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 10 replies
 * 3 participants
 * Last reply from: [Inv_Trdr](https://wordpress.org/support/users/inv_trdr/)
 * Last activity: [16 years, 10 months ago](https://wordpress.org/support/topic/adding-java-script/#post-1157437)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
