Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Add class to post_class function wordpress (as last class)
<?php
add_filter( 'post_class', 'uikit_article_class' );
function my_article_class($classes) {
if (!is_admin()) {
$classes[] = 'my-class';
return $classes;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.