Localize header image and add alt text
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
15
patterns/header.php
Normal file
15
patterns/header.php
Normal file
@ -0,0 +1,15 @@
|
||||
<?php
|
||||
/**
|
||||
* Title: header
|
||||
* Slug: /header
|
||||
* Categories: hidden
|
||||
* Inserter: no
|
||||
*/
|
||||
?>
|
||||
<!-- wp:group {"style":{"spacing":{"padding":{"right":"var:preset|spacing|70","left":"var:preset|spacing|70","top":"var:preset|spacing|50","bottom":"var:preset|spacing|50"}},"border":{"bottom":{"color":"var:preset|color|main-purple","width":"3px"}}},"layout":{"type":"flex","flexWrap":"nowrap","justifyContent":"space-between"}} -->
|
||||
<div class="wp-block-group" style="border-bottom-color:var(--wp--preset--color--main-purple);border-bottom-width:3px;padding-top:var(--wp--preset--spacing--50);padding-right:var(--wp--preset--spacing--70);padding-bottom:var(--wp--preset--spacing--50);padding-left:var(--wp--preset--spacing--70)"><!-- wp:image {"lightbox":{"enabled":false},"width":"110px","sizeSlug":"large","linkDestination":"custom"} -->
|
||||
<figure class="wp-block-image size-large is-resized"><a href="/"><img src="<?php echo esc_url( get_stylesheet_directory_uri() ); ?>/assets/images/logo-wordmark.png" alt="Lex Scotland: Living, Leading, Changing" style="width:110px"/></a></figure>
|
||||
<!-- /wp:image -->
|
||||
|
||||
<!-- wp:navigation {"overlayBackgroundColor":"background","overlayTextColor":"main-purple","layout":{"type":"flex","justifyContent":"left"},"style":{"typography":{"fontSize":"18px"}}} /--></div>
|
||||
<!-- /wp:group -->
|
Reference in New Issue
Block a user