WordPress.org

Forums

Any CSS coding guidelines? (6 posts)

  1. mloskot
    Member
    Posted 9 years ago #

    Hi (first time),

    I'd like to ask for any coding guidelines for CSS for new themes.
    Are there any?
    Second, is there any list of class/ID names (reference or recomendation) which theme developer should use?

    As far as I know, every developer is allowede to use his own CSS elements and names which are used by his theme.

    i.e. CSS ID for header block (div) is header, if someone is going to use horizontal navigation bar, then ID navbar is defined for that block.

    I hope I'm clear.

    Cheers

  2. Mark (podz)
    Support Maven
    Posted 9 years ago #

  3. mloskot
    Member
    Posted 9 years ago #

    I know this resource. I've asked for similar reference to Template Tags but for CSSs, you know.
    Cheers

  4. moshu
    Member
    Posted 9 years ago #

    I don't know of any strict (WP) guidelines regarding css or naming the divs. As far as it's in the limits of the common sense (e.g. the examples you gave in the OP) I guess it's fine.

  5. tomhanna
    Member
    Posted 9 years ago #

    If you intend to release the theme, just comment it if it's not completely apparent by the name. (Header is pretty obvious, for example.)

  6. mloskot
    Member
    Posted 9 years ago #

    Thank you very much, that's answer I was looking for :-)

    Cheers

Topic Closed

This topic has been closed to new replies.

About this Topic