🐞 fix: Update styles for proper background
Sync TODOs with Issues / sync_todos (push) Successful in 6s
Sync TODOs with Issues / sync_todos (push) Successful in 6s
This commit is contained in:
+7
-3
@@ -65,16 +65,20 @@ add_filter(
|
||||
/**
|
||||
* Checks if the page should render a page header.
|
||||
*
|
||||
* Returns true only when the page heading ACF field is explicitly set to
|
||||
* 'default'. When 'none' is selected, no page header should render (the
|
||||
* page instead relies on its own hero block / template hero).
|
||||
*
|
||||
* @return bool true if page header should be rendered, false otherwise
|
||||
*/
|
||||
function hasPageHeader() {
|
||||
global $post;
|
||||
|
||||
if ( get_field( 'hero_style' ) !== 'none' ) {
|
||||
return false;
|
||||
if ( get_field( 'hero_style' ) === 'default' ) {
|
||||
return true;
|
||||
}
|
||||
|
||||
return true;
|
||||
return false;
|
||||
}
|
||||
|
||||
/** Create the Owner role.
|
||||
|
||||
Reference in New Issue
Block a user