Forums

Adding HTML and CSS stylesheets to posts (4 posts)

  1. Nick R
    Member
    Posted 8 months ago #

    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/

    As you can see it has now aligned the page slightly differently then the other pages:

    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

  2. nsathees
    Member
    Posted 8 months ago #

    <link rel="stylesheet" type="text/css" href="http://www.elementary-agency.com/Hotel%20Page/css/socialmedia.css" media="all">

    is not loaded

  3. Nick R
    Member
    Posted 8 months ago #

    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

  4. vjpo
    Member
    Posted 8 months ago #

    Custom page template is best way to create an unique page
    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
    check links in this topic
    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

Reply

You must log in to post.

About this Topic