WordPress.org

Ready to get started?Download WordPress

Forums

How to clear theme css formatting within a post/page (5 posts)

  1. aster
    Member
    Posted 4 years ago #

    I'm using the WP theme Modularity Lite with a bunch of my own modified page templates and such. Overall I'm happy with the look.

    But... on a number of pages I'd like to customize the layout & appearance. I use WP's HTML editor (as the WYSIWYG editor is buggy), but have had all sorts of interference from my theme's style.css. Is there a way, maybe some kind of <> tag, that will make the page ignore style.css and just go with the HTML in the page?

  2. ajithkpunnoose
    Member
    Posted 4 years ago #

    Try adding a custom field, and then a filter so that when you add the value 1 to your custom field, the theme file is not included.

  3. SpankMarvin
    Member
    Posted 4 years ago #

    In addition to the above reply, if you used the custom field to explicitly specify a style name of your choice, your template could look for these values as part of the custom field check, and apply the stylesheet, all in one. So, your value might be "layout1" and that refers to a replacement stylesheet. No value, no stylesheet changes.

  4. aster
    Member
    Posted 4 years ago #

    Thanks for the responses... I'll give these a try.

  5. ajithkpunnoose
    Member
    Posted 4 years ago #

    Also remember, you can use the conditional tags with page id check to implement this. But that can get messy if you have many pages and also will add a db query.

Topic Closed

This topic has been closed to new replies.

About this Topic