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.
Return Return
(string[])
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; }
Expand full source code Collapse full source code View on GitHub
Changelog Changelog
Version | Description |
---|---|
3.37.0 | Introduced. |