Title: Adding javascript to a page&#8230;
Last modified: August 19, 2016

---

# Adding javascript to a page…

 *  [LJagermaster](https://wordpress.org/support/users/the-living-legend/)
 * (@the-living-legend)
 * [16 years, 1 month ago](https://wordpress.org/support/topic/adding-javascript-to-a-page-1/)
 * I’ve spent 2 days searching these forums for an answer to this and found nothing
   that’s worked.
 * Basically, I’m trying to add some flash games to my blog. My options are either
   javascript or an iFrame and both are rendered as code (even with the visual editor
   disabled). I’ve tried plugins such as You Can Javascript, Text Control, and a
   few others but none do as they claim to (Text Controls box doesn’t even appear
   on the post/page edit page, and none of the settings seem to relate to it). I’m
   simply adding one piece of code to a single page within wordpress, so I fear 
   messing about with headers will only cause more issues in the long run.
 * Does anyone know of a way round this??
 * Cheers,
 * LJ
 * UPDATE: It now seems that the iFrame option renders the code as expected, however
   I’d still like to resolve the javascript issue…

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

 *  [esmi](https://wordpress.org/support/users/esmi/)
 * (@esmi)
 * [16 years, 1 month ago](https://wordpress.org/support/topic/adding-javascript-to-a-page-1/#post-1467600)
 * If this is for a single page, you could try adding the code to a [custom page template](http://codex.wordpress.org/Pages#Creating_Your_Own_Page_Templates).
 *  Thread Starter [LJagermaster](https://wordpress.org/support/users/the-living-legend/)
 * (@the-living-legend)
 * [16 years, 1 month ago](https://wordpress.org/support/topic/adding-javascript-to-a-page-1/#post-1467779)
 * It’s definitely an option, thanks for the suggestion! 🙂 Unfortunately tho it’s
   far too time consuming as I’ve never attempted anything like it before (I literally
   have 2 hours a day to get all my online work done, as well as address some personal
   stuff, so I wouldn’t be able to commit enough time into the learning curve)…

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

The topic ‘Adding javascript to a page…’ is closed to new replies.

## Tags

 * [code](https://wordpress.org/support/topic-tag/code/)
 * [javascript](https://wordpress.org/support/topic-tag/javascript/)
 * [page](https://wordpress.org/support/topic-tag/page/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 2 replies
 * 2 participants
 * Last reply from: [LJagermaster](https://wordpress.org/support/users/the-living-legend/)
 * Last activity: [16 years, 1 month ago](https://wordpress.org/support/topic/adding-javascript-to-a-page-1/#post-1467779)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
