Skip to content

Instantly share code, notes, and snippets.

@rachelmccollin
Last active June 6, 2018 14:07
Show Gist options
  • Save rachelmccollin/fa1aa4761c930017c5454d62b657de25 to your computer and use it in GitHub Desktop.
Save rachelmccollin/fa1aa4761c930017c5454d62b657de25 to your computer and use it in GitHub Desktop.
WPMU DEV body_class() and post_class() template tags
<body <?php body_class(); ?>>
<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
.blog #content .category-basics h3,
.blog #content .category-basics h3.entry-title a:link,
.blog #content .category-basics h3.entry-title a:visited {
color: #48C9C8;
}
.blog #content .category-essentials h3,
.blog #content .category-essentials h3.entry-title a:link,
.blog #content .category-essentials h3.entry-title a:visited {
color: #A2C847;
}
.blog #content .category-ultimate h3,
.blog #content .category-ultimate h3.entry-title a:link,
.blog #content .category-ultimate h3.entry-title a:visited {
color: #D54E21;
}
.blog #content .category-applications h3,
.blog #content .category-applications h3.entry-title a:link,
.blog #content .category-applications h3.entry-title a:visited {
color: #F8BA00;
}
.category-essentials #content h2.page-title,
.category-essentials #content h3.entry-title a:link,
.category-essentials #content h3.entry-title a:visited {
color: #A2C847;
}
.category-essentials #content article {
border-bottom: 1px solid #A2C847;
}
.category-ultimate #content h2.page-title,
.category-ultimate #content h3.entry-title a:link,
.category-ultimate #content h3.entry-title a:visited {
color: #D54E21;
}
.category-ultimate #content article {
border-bottom: 1px solid #D54E21;
}
.category-applications #content h2.page-title,
.category-applications #content h3.entry-title a:link,
.category-applications #content h3.entry-title a:visited {
color: #F8BA00;
}
.category-applications #content article {
border-bottom: 1px solid #F8BA00;
}
.category-basics #content h2.page-title,
.category-basics #content h3.entry-title a:link,
.category-basics #content h3.entry-title a:visited {
color: #48C9C8;
}
.category-basics #content article {
border-bottom: 1px solid #48C9C8;
}
h1 {
color: #fff;
}
h2,
h3,
h3.entry-title a:link,
h3.entry-title a:visited,
h4,
h5,
h6 {
color: #21759B;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment