AnsPress_Theme::body_class( array $classes )

Description #

Add anspress classes to body.

Parameters #

  • $classes
    array (Required) Body class attribute.

Changelog #

VersionDescription
2.0.1Introduced.

Source #

File: includes/class-theme.php

	public static function body_class( $classes ) {
		// Add anspress class to body.
		if ( is_anspress() ) {
			$classes[] = 'anspress-content';
			$classes[] = 'ap-page-' . ap_current_page();
		}

		return $classes;
	}

Leave a Reply

Your email address will not be published.

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Add your comment