Skip to content

Commit

Permalink
fix(personal): Adjust logo and title margins (#744)
Browse files Browse the repository at this point in the history
* fix(personal): Adjust logo and title margins

Centralized main title if description is empty.

Signed-off-by: MisterMX <[email protected]>

* Update template-parts/header-personal.php

* Update template-parts/header-personal.php

* Fix line idents and variable name

---------

Signed-off-by: MisterMX <[email protected]>
Co-authored-by: Alexander Bigga <[email protected]>
Co-authored-by: Alexander Bigga <[email protected]>
  • Loading branch information
3 people authored Nov 5, 2024
1 parent 1cce728 commit 4f39a24
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
2 changes: 1 addition & 1 deletion sass/_header.scss
Original file line number Diff line number Diff line change
Expand Up @@ -266,7 +266,7 @@ body {
background-color: $secondary;
}

margin-right: 0.25rem;
margin-right: 1rem;
height: 95px;
width: 95px;
display: flex;
Expand Down
11 changes: 7 additions & 4 deletions template-parts/header-personal.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,11 +36,14 @@
</div>
<div>
<div class="h5 bloginfo-name">
<p><?php printf( '<span>%s</span>', esc_attr( get_bloginfo( 'name' ) ) ); ?></p>
</div>
<div class="mb-0 bloginfo-description">
<?php esc_attr( bloginfo( 'description' ) ); ?>
<?php printf( '<span>%s</span>', esc_attr( get_bloginfo( 'name' ) ) ); ?>
</div>
<?php
$sunflower_description = get_bloginfo( 'description' );
if ( $sunflower_description ) {
printf( '<div class="mb-0 bloginfo-description">%s</div>', esc_attr( $sunflower_description ) );
}
?>
</div>
</div>

Expand Down

0 comments on commit 4f39a24

Please sign in to comment.