Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@billerickson
Created April 4, 2016 15:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save billerickson/1906206448a7a6719863209c26e9c19f to your computer and use it in GitHub Desktop.
Save billerickson/1906206448a7a6719863209c26e9c19f to your computer and use it in GitHub Desktop.
<?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