• Resolved blackessej

    (@blackessej)


    I know it’s not ideal, but I want to be able to call custom styles for individual pages. I’ve tried doing so by typing, for example

    <style type="text/css">
    #primary { border: none }
    </style>

    into the HTML view of the editor, but whenever I update the page it turns my opening and closing tags into comment tags, thus nixing my styles. I’m using the TwentyTen theme, and I’ve installed TinyMCE editor, but I was having the problem with the default editor tools, as well. Does anyone know a way around this?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter blackessej

    (@blackessej)

    I realize I can use the post ID as a selector in the main stylesheet, but it would be easier for my if I could use the above method…

    Thanks.

    You cannot insert a CSS block into the body of a page and expect it to work. You either need to add it to your stylesheet or use inline style.

    Thread Starter blackessej

    (@blackessej)

    Thought as much. Inline styles are no good because I’m talking about changes to elements outside of the content area. I’ll just create style classes by post IDs. Thanks.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Calling styles in the WYSIWYG/HTML editor’ is closed to new replies.