CSS classes for theme

Does anybody know predefined (suggested by WP) CSS classes which should I use in my theme?

I have seen somewhere in Internet a list of all CSS classes, which are used in WP theme, but can’t find it.

Read More

UPDATE: I have found the site where I’ve seen this list: http://www.wpbeginner.com/wp-themes/default-wordpress-generated-css-cheat-sheet-for-beginners/

Related posts

Leave a Reply

3 comments

  1. There are many CSS classes generated by WordPress, depending on context.

    The Theme Review Guidelines include the following, WordPress-generated CSS classes:

    • Alignment Classes:
      • .aligncenter
      • .alignleft
      • .alignright
    • Caption Related Classes:
      • .wp-caption
      • .wp-caption-text
      • .gallery-caption
    • Post Classes:
      • .sticky
    • Comment Classes:
      • .bypostauthor

    Then, there are the body classes generated by body_class().

    Then, there are the post classes generated by post_class().

    Then, there are the comment classes generated by comment_class().

    Then, there are the menu item classes generated by wp_nav_menu().