Skip to content

Commit

Permalink
WDSBT-7 - Update site logo/title conditional
Browse files Browse the repository at this point in the history
  • Loading branch information
khleomix committed Apr 17, 2024
1 parent 87624cc commit d193821
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion patterns/header-default.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@
* @package wdsbt
*/

// Determine whether to display site logo or site title.
$wds_site_info = has_custom_logo() ? '<!-- wp:site-logo {"width":150,"shouldSyncIcon":true,"style":{"layout":{"selfStretch":"fixed","flexSize":"25%"}}} /-->' : '<!-- wp:site-title /-->';

?>

<!-- wp:group {"align":"full","style":{"spacing":{"margin":{"top":"0px"},"padding":{"top":"30px","right":"30px","bottom":"30px","left":"30px"}}},"backgroundColor":"white","layout":{"inherit":true,"type":"constrained"},"metadata":{"name":"Header"}} -->
Expand All @@ -16,7 +19,7 @@
<!-- wp:group {"align":"wide","layout":{"type":"flex","justifyContent":"space-between","flexWrap":"nowrap"}} -->
<div class="wp-block-group alignwide">

<!-- wp:site-logo {"width":150,"shouldSyncIcon":true,"style":{"layout":{"selfStretch":"fixed","flexSize":"25%"}}} /-->
<?php echo wp_kses_post( $wds_site_info ); ?>

<!-- wp:group {"style":{"layout":{"selfStretch":"fixed","flexSize":"75%"}},"layout":{"type":"flex","flexWrap":"nowrap","justifyContent":"right"},"metadata":{"name":"Primary Menu"}} -->
<div class="wp-block-group">
Expand Down

0 comments on commit d193821

Please sign in to comment.