WordPress.org

Ready to get started?Download WordPress

Forums

PC Custom CSS
[resolved] Can make CSS only affect specific themes? (6 posts)

  1. jsherk
    Member
    Posted 1 year ago #

    Hi

    Is it somehow possible to specify that certain changes entered into the Custom CSS page only affect a certain theme?

    Currently the changes will remain in effect even if the theme is changed, but would like to be able to assign certain changes to one theme, and other changes to different themes.

    Thanks

    http://wordpress.org/extend/plugins/pc-custom-css/

  2. Peter Coughlin
    Member
    Plugin Author

    Posted 1 year ago #

    Hi there.

    I guess you could add a custom class to the body element of your theme and use that in the custom CSS?

  3. jsherk
    Member
    Posted 1 year ago #

    Is that what the Custom Body Class is for, meaning the Custom CSS will only affect the theme if the Custom Body Class is listed as a class of the body of the theme?

  4. Peter Coughlin
    Member
    Plugin Author

    Posted 1 year ago #

    No. When you add a custom body class, it is added to the current theme.

    If you manually added a class to the body element of your theme (something like the name of your theme) then used that class in the custom CSS plugin, it would only apply to that theme.

  5. jsherk
    Member
    Posted 1 year ago #

    okay thanks.

    Its a great plugin by the way! Rated 5 stars.

  6. Peter Coughlin
    Member
    Plugin Author

    Posted 1 year ago #

    Thanks!

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.