-
-
Save billerickson/1906206448a7a6719863209c26e9c19f to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Portfolio Archive Body Class | |
* @author Bill Erickson | |
* @link http://www.billerickson.net/wordpress-class-body-tag/ | |
* | |
* @param array $classes, existing body classes | |
* @return array $classes | |
*/ | |
function be_portfolio_archive_body_class( $classes ) { | |
$classes[] = 'portfolio-archive'; | |
return $classes; | |
} | |
add_filter( 'body_class', 'be_portfolio_archive_body_class' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment