Skip to content

Instantly share code, notes, and snippets.

@codekraft-studio
Last active October 5, 2016 07:48
Show Gist options
  • Save codekraft-studio/33b393913fd5235a131c26b1d27b16c4 to your computer and use it in GitHub Desktop.
Save codekraft-studio/33b393913fd5235a131c26b1d27b16c4 to your computer and use it in GitHub Desktop.
A collection of WordPress default generated classes.
/****************************************************
* WP CSS - body_class() *
* The classes generated with body_class() function *
****************************************************/
.rtl {}
.home {}
.blog {}
.archive {}
.date {}
.search {}
.paged {}
.attachment {}
.error404 {}
.single .postid-(id) {}
.attachmentid-(id) {}
.attachment-(mime-type) {}
.author {}
.author-(user_nicename) {}
.category {}
.category-(slug) {}
.tag {}
.tag-(slug) {}
.page-parent {}
.page-child parent-pageid-(id) {}
.page-template-default {}
.page-template page-template-(template file name) {}
.search-results {}
.search-no-results {}
.logged-in {}
.admin-bar {}
.no-customize-support {}
.custom-background {}
.wp-custom-logo {}
.paged-(page number) {}
.single-paged-(page number) {}
.page-paged-(page number) {}
.category-paged-(page number) {}
.tag-paged-(page number) {}
.date-paged-(page number) {}
.author-paged-(page number) {}
.search-paged-(page number) {}
/****************************************************
* WP CSS - post_class() *
* The classes generated with post_class() function *
****************************************************/
.post-id {}
.post {}
.(post-type) {}
.page {}
.attachment {}
.sticky {}
.hentry {}
.has-post-thumbnail {}
.status-(post-status) {}
/* Some exaples */
.status-published {}
.status-draft {}
.(taxonomy)-(taxonomy slug) {}
/* Some exaples */
.category-misc {}
.category-example {}
.tag-(name) {}
/* Some exaples */
.tag-news {}
.tag-wordpress {}
.tag-markup {}
.post-password-required {}
.post-password-protected {}
.format-(name) {}
.format-standard {}
/* Some exaples */
.format-image {}
.format-gallery {}
.format-chat {}
.format-link {}
.format-quote {}
.format-status {}
.format-video {}
/***************************************************
* WP CSS - Menu Classes *
* The classes generated in wp_nav_menu() function *
***************************************************/
/**
* You should replace #header with your menu id
* and .menu with the menu class you choose
*/
#header .menu{}
#header .menu ul {}
#header .menu ul ul {}
#header .menu li {}
#header .menu li a {}
#header .menu li ul {}
#header .menu li li {}
#header .menu li li a {}
#header .menu ul.sub-menu {}
.current_page_item {}
.current-cat {}
.current-menu-item {}
.menu-item {}
.menu-item-(id) {}
.menu-item-type-taxonomy {}
.menu-item-type-post_type {}
.menu-item-type-custom {}
.menu-item-type-taxonomy {}
.menu-item-home {}
.menu-item-object-page {}
.menu-item-object-custom {}
.menu-item-object-category {}
.menu-item-has-children {}
/**********************************************
* WP CSS - Page Listings *
* The classes generated in page navigation *
**********************************************/
.pagenav {}
.page_item {}
.page-item-(id) {}
.current_page_item {}
li.categories {}
li.cat-item {}
li.cat-item-(id) {}
li.current-cat {}
.current_page_parent {}
.current_page_ancestor {}
/*********************************************
* WP CSS - Comment Styles *
* The classes generated in comments listing *
*********************************************/
.commentlist .reply {}
.commentlist .reply a {}
.commentlist .alt {}
.commentlist .odd {}
.commentlist .even {}
.commentlist .thread-alt {}
.commentlist .thread-odd {}
.commentlist .thread-even {}
.commentlist li ul.children .alt {}
.commentlist li ul.children .odd {}
.commentlist li ul.children .even {}
.commentlist .vcard {}
.commentlist .vcard cite.fn {}
.commentlist .vcard span.says {}
.commentlist .vcard img.photo {}
.commentlist .vcard img.avatar {}
.commentlist .vcard cite.fn a.url {}
.commentlist .comment-meta {}
.commentlist .comment-meta a {}
.commentlist .commentmetadata {}
.commentlist .commentmetadata a {}
.commentlist .parent {}
.commentlist .comment {}
.commentlist .children {}
.commentlist .pingback {}
.commentlist .bypostauthor {}
.commentlist .comment-author {}
.commentlist .comment-author-admin {}
.commentlist {}
.commentlist li {}
.commentlist li p {}
.commentlist li ul {}
.commentlist li ul.children li {}
.commentlist li ul.children li.alt {}
.commentlist li ul.children li.byuser {}
.commentlist li ul.children li.comment {}
.commentlist li ul.children li.depth-(id) {}
.commentlist li ul.children li.bypostauthor {}
.commentlist li ul.children li.comment-author-admin {}
#cancel-comment-reply {}
#cancel-comment-reply a {}
/**********************************************************
* WP CSS - WYSIWYG Classes *
* The classes generated for the WordPress default editor *
**********************************************************/
.entry-content img {}
.alignleft, img.alignleft {}
.alignright, img.alignright {}
.aligncenter, img.aligncenter {}
.alignnone, img.alignnone {}
.wp-caption {}
.wp-caption img {}
.wp-caption p.wp-caption-text {}
.wp-smiley {}
blockquote.left {}
blockquote.right {}
.gallery dl {}
.gallery dt {}
.gallery dd {}
.gallery dl a {}
.gallery dl img {}
.gallery-caption {}
.size-full {}
.size-large {}
.size-medium {}
.size-thumbnail {}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment