Support » Themes and Templates » Future proof styles

  • Hi,

    Been dabbling with WordPress for well over a year now, and recently have a collection of themes that I’ll be releasing to share.

    The problem is I don’t know if it’s a lack of my understanding, or a lack of a feature in WordPress, but I’m faced with a small dilema.

    As an example, suppose I have a class called “PostHeader”. I could ensure that all my posts are set around this class. If one theme sets the font colour to blue, and another theme to red, then with each change of theme the PostHeader will change accordingly. No problems there.

    However, if I have a post which contains several styles, for example I may have a class which indicates a download (ala Sawchuk), or half way in my posts I want to comment something based on a website and comment on something else based on another website, I ‘could’ put these in the blockquote tag but I’d prefer to create a new class called ‘webcomment’ or ‘spokencomment’.

    IF, my new theme didn’t have a style for ‘webcomment’ then when the page renders it would simply render the ‘webcomment’ class as the standard body-text, which is of course all the benefits of CSS.

    But the problem I have is that in order to incorporate these classes the only way I know how is to type my post then go into the HTML editor and wrap the various parts around the classes.

    Is there a plugin that lists the CSS classes, or another far more ‘future proof’ way of assigning a particular piece of text/paragraph/image/etc. to a different CSS class without having to go into the HTML editor?

    It would make life so much nicer 🙂

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘Future proof styles’ is closed to new replies.