WordPress.org

Support

Support » Themes and Templates » Post/Page CSS separate from style.css in theme?

Post/Page CSS separate from style.css in theme?

  • Currently the only way I know of to add my own CSS that is applied to pages and posts is to edit style.css in my current theme. The problem with this, however, is that those customized CSS additions are lost when I switch themes. Is there a stylesheet somewhere that is global (like style.css) but is theme-agnostic?

    Also keep in mind that being able to edit such a CSS file through wordpress would be ideal as well.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Is there a stylesheet somewhere that is global (like style.css) but is theme-agnostic?

    You’d have to load a global stylesheet from a plugin, since you want it theme independent, and some very general CSS would work– things like font colors and such. Other things like positioning and div sizing are going to be peculiar to a theme– the html markup in the various themes are different. You can’t transfer those bits.

    Can anyone shed any light on how to do this? I want this exact option.

    ie, I would like to be able to declare some CSS that will function in any theme on any blog in my network

    In case others come across this (as I had done), I had solved this and this is where I got the info:
    http://wordpress.org/support/topic/419291

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Post/Page CSS separate from style.css in theme?’ is closed to new replies.