LLMS_Twenty_Twenty::body_classes( string[] $classes )

Add Twenty Twenty’s full-width template body class on catalogs where the page is set to use the Full Width template.


Parameters Parameters

$classes

(string[]) (Required) Array of body classes.


Top ↑

Return Return

(string[])


Top ↑

Source Source

File: includes/theme-support/class-llms-twenty-twenty.php

	public static function body_classes( $classes ) {

		$page_id = self::get_archive_page_id();
		if ( $page_id && self::is_page_full_width( $page_id ) ) {
			$classes[] = 'template-full-width';
		}

		return $classes;

	}


Top ↑

Changelog Changelog

Changelog
Version Description
3.37.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.