Title: how to add html/javascript to post
Last modified: August 21, 2016

---

# how to add html/javascript to post

 *  [thatmtnman](https://wordpress.org/support/users/thatmtnman/)
 * (@thatmtnman)
 * [12 years, 4 months ago](https://wordpress.org/support/topic/how-to-add-htmljavascript-to-post/)
 * Dear Forum,
 * I would like to embed an affiliate form into several pages of a wordpress site.
   The form comes with its own css and html, plus a lot of javascript.
 * It will probably surprise no one that just copying the form into a page doesn’t
   work. And positioning the form, for example, centering it, or making text wrap
   around it, or making several forms align properly on a page doesn’t work either.
 * Is there a way to do this or trying to do the impossible?
 * Many thanks!

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

 *  [Pioneer Web Design](https://wordpress.org/support/users/swansonphotos/)
 * (@swansonphotos)
 * [12 years, 4 months ago](https://wordpress.org/support/topic/how-to-add-htmljavascript-to-post/#post-4500527)
 * You can create a [Page Template](http://codex.wordpress.org/Page_Templates#Custom_Page_Template)
   for this page and apply that to the Page where you want the form to be. If the
   Javascript is external you can just use the providers code in your Page Template.
   If the Javascript needs to run from your site, review:
 * [http://codex.wordpress.org/Using_Javascript](http://codex.wordpress.org/Using_Javascript)
 * The CSS can be added to your stylesheet or you can create a header file to be
   used on this page and include the stylesheet(s) provided there.
 * Note, the styles may need to be tweaked for your site look.
 * All of the above should be done in a [Child Theme](http://codex.wordpress.org/Child_Themes).
 * Standard note on CSS:
 * To discover what CSS is output by your theme, use a web inspection tool such 
   as Firebug: [http://getfirebug.com/](http://getfirebug.com/) , Chrome Inspect
   Element: [https://developers.google.com/chrome-developer-tools/](https://developers.google.com/chrome-developer-tools/)
   or Internet Explorer 9+ F12 Dev. Tools: [http://msdn.microsoft.com/en-us/library/dd565627(v=vs.85)](http://msdn.microsoft.com/en-us/library/dd565627(v=vs.85)).
   aspx#csstool
 * There are others.
 * When editing CSS, use a Child Theme
    [http://codex.wordpress.org/Child_Themes](http://codex.wordpress.org/Child_Themes)
   Custom CSS Plugin, or Theme provided custom CSS option. Edits to parent themes
   are lost on theme update.
 * Learn CSS: [http://www.w3schools.com/css/](http://www.w3schools.com/css/)
 *  Thread Starter [thatmtnman](https://wordpress.org/support/users/thatmtnman/)
 * (@thatmtnman)
 * [12 years, 4 months ago](https://wordpress.org/support/topic/how-to-add-htmljavascript-to-post/#post-4500566)
 * thank you Pioneer! I’ll give it a try!
 * cheers

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

The topic ‘how to add html/javascript to post’ is closed to new replies.

## Tags

 * [embedding](https://wordpress.org/support/topic-tag/embedding/)
 * [forms](https://wordpress.org/support/topic-tag/forms/)
 * [html](https://wordpress.org/support/topic-tag/html/)
 * [javascript](https://wordpress.org/support/topic-tag/javascript/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 2 replies
 * 2 participants
 * Last reply from: [thatmtnman](https://wordpress.org/support/users/thatmtnman/)
 * Last activity: [12 years, 4 months ago](https://wordpress.org/support/topic/how-to-add-htmljavascript-to-post/#post-4500566)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
