Title: Adding HTML and CSS stylesheets to posts
Last modified: August 20, 2016

---

# Adding HTML and CSS stylesheets to posts

 *  [Nick R](https://wordpress.org/support/users/nickelementary-agencycom/)
 * (@nickelementary-agencycom)
 * [14 years, 8 months ago](https://wordpress.org/support/topic/adding-html-and-css-stylesheets-to-posts/)
 * Hi,
    I’m trying to add HTML to a single post and then have unique CSS for just
   that page. I installed a plugin called specific CSS that allows you to link CSS
   for just that page.
 * Here is the page I am working on..
 * [http://www.elementary-agency.com/marketing-hotels-packages/](http://www.elementary-agency.com/marketing-hotels-packages/)
 * As you can see it has now aligned the page slightly differently then the other
   pages:
 * [http://www.elementary-agency.com/](http://www.elementary-agency.com/)
 * Can anyone let me know if this is the best way to create a unique page or any
   css that i can adjust for that page.
 * Thanks for your help in advance.
 * Nick

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

 *  [nsathees](https://wordpress.org/support/users/nsathees/)
 * (@nsathees)
 * [14 years, 8 months ago](https://wordpress.org/support/topic/adding-html-and-css-stylesheets-to-posts/#post-2283430)
 * `<link rel="stylesheet" type="text/css" href="http://www.elementary-agency.com/
   Hotel%20Page/css/socialmedia.css" media="all">`
 * is not loaded
 *  Thread Starter [Nick R](https://wordpress.org/support/users/nickelementary-agencycom/)
 * (@nickelementary-agencycom)
 * [14 years, 8 months ago](https://wordpress.org/support/topic/adding-html-and-css-stylesheets-to-posts/#post-2283536)
 * Thanks for helping out. I tried to add that to the HTML section of the page but
   it didnt seem to make much difference.
 * Cheers
 * Nick
 *  [vjpo](https://wordpress.org/support/users/vjpo/)
 * (@vjpo)
 * [14 years, 8 months ago](https://wordpress.org/support/topic/adding-html-and-css-stylesheets-to-posts/#post-2283544)
 * Custom page template is best way to create an unique page
    [http://codex.wordpress.org/Pages#Page_Templates](http://codex.wordpress.org/Pages#Page_Templates)
 * `body_class();` is a good way to style differently pages and posts.
    [http://codex.wordpress.org/Function_Reference/body_class](http://codex.wordpress.org/Function_Reference/body_class)
   check links in this topic [http://wordpress.org/support/topic/add-an-extra-body-class?replies=15](http://wordpress.org/support/topic/add-an-extra-body-class?replies=15)
 * some extra..
    if you need clean html code in your page content, check the issue
   about WP **post auto formatting**. or check out e.g. **Raw html** plugin

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

The topic ‘Adding HTML and CSS stylesheets to posts’ is closed to new replies.

## Tags

 * [html](https://wordpress.org/support/topic-tag/html/)
 * [Stylesheet](https://wordpress.org/support/topic-tag/stylesheet/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 3 replies
 * 3 participants
 * Last reply from: [vjpo](https://wordpress.org/support/users/vjpo/)
 * Last activity: [14 years, 8 months ago](https://wordpress.org/support/topic/adding-html-and-css-stylesheets-to-posts/#post-2283544)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
