WordPress.org

Ready to get started?Download WordPress

Forums

Post/Page CSS separate from style.css in theme? (4 posts)

  1. rcdailey
    Member
    Posted 4 years ago #

    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.

  2. s_ha_dum
    Member
    Posted 4 years ago #

    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.

  3. madivad
    Member
    Posted 4 years ago #

    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

  4. madivad
    Member
    Posted 4 years ago #

    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

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.