mloskot
Member
Posted 6 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
mloskot
Member
Posted 6 years ago #
I know this resource. I've asked for similar reference to Template Tags but for CSSs, you know.
Cheers
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.
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.)
mloskot
Member
Posted 6 years ago #
Thank you very much, that's answer I was looking for :-)
Cheers