This repository has been archived by the owner on Feb 23, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 219
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add new
Header Centered Search
pattern
- Loading branch information
Showing
1 changed file
with
73 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,73 @@ | ||
<?php | ||
/** | ||
* Title: WooCommerce Header Centered Search | ||
* Slug: woocommerce-blocks/header-centered-search | ||
* Categories: WooCommerce | ||
* Block Types: core/template-part/header | ||
*/ | ||
?> | ||
|
||
<!-- wp:group {"align":"full","layout":{"type":"constrained"}} --> | ||
<div class="wp-block-group alignfull"> | ||
<!-- wp:group {"align":"full","style":{"spacing":{"padding":{"right":"2%","bottom":"16px","left":"2%","top":"16px"},"margin":{"top":"0px","bottom":"0px"}}},"className":"sticky-header","layout":{"type":"flex","flexWrap":"wrap","justifyContent":"space-between"}} --> | ||
<div class="wp-block-group alignfull sticky-header" style="margin-top:0px;margin-bottom:0px;padding-top:16px;padding-right:2%;padding-bottom:16px;padding-left:2%"> | ||
<!-- wp:group {"style":{"spacing":{"blockGap":"40px"}},"layout":{"type":"flex","flexWrap":"wrap"}} --> | ||
<div class="wp-block-group"> | ||
<!-- wp:site-logo {"shouldSyncIcon":false} /--> | ||
<!-- wp:site-title /--> | ||
|
||
<!-- wp:spacer --> | ||
<div style="height:100px" aria-hidden="true" class="wp-block-spacer"></div> | ||
<!-- /wp:spacer --></div> | ||
<!-- /wp:group --> | ||
|
||
<!-- wp:group {"style":{"spacing":{"blockGap":"8px"},"typography":{"fontSize":"13px"}},"layout":{"type":"flex","flexWrap":"nowrap","justifyContent":"right"}} --> | ||
<div class="wp-block-group" style="font-size:13px"> | ||
<!-- wp:group {"style":{"spacing":{"blockGap":"16px"}},"layout":{"type":"flex","flexWrap":"nowrap"}} --> | ||
<div class="wp-block-group"> | ||
<!-- wp:separator {"className":"is-style-wide"} --> | ||
<hr class="wp-block-separator has-alpha-channel-opacity is-style-wide" /> | ||
<!-- /wp:separator --> | ||
</div> | ||
<!-- /wp:group --> | ||
|
||
<!-- wp:search {"label":"Search","showLabel":false,"placeholder":"Search for products or brands","width":100,"widthUnit":"%","buttonText":"Search","buttonPosition":"button-inside","buttonUseIcon":true,"style":{"color":{"background":"#ffffff00"}},"textColor":"foreground"} /--> | ||
|
||
<!-- wp:spacer --> | ||
<div style="height:100px" aria-hidden="true" class="wp-block-spacer"></div> | ||
<!-- /wp:spacer --> | ||
|
||
<!-- wp:spacer --> | ||
<div style="height:100px" aria-hidden="true" class="wp-block-spacer"></div> | ||
<!-- /wp:spacer --> | ||
|
||
<!-- wp:spacer --> | ||
<div style="height:100px" aria-hidden="true" class="wp-block-spacer"></div> | ||
<!-- /wp:spacer --> | ||
|
||
<!-- wp:woocommerce/customer-account {"displayStyle":"icon_only","iconClass":"wc-block-customer-account__account-icon"} /--> | ||
|
||
<!-- wp:spacer --> | ||
<div style="height:100px" aria-hidden="true" class="wp-block-spacer"></div> | ||
<!-- /wp:spacer --> | ||
|
||
<!-- wp:woocommerce/mini-cart {"style":{"typography":{"fontSize":"14px"}}} /--> | ||
</div> | ||
<!-- /wp:group --> | ||
</div> | ||
<!-- /wp:group --> | ||
|
||
<!-- wp:separator {"align":"full","className":"is-style-wide"} --> | ||
<hr class="wp-block-separator alignfull has-alpha-channel-opacity is-style-wide" /> | ||
<!-- /wp:separator --> | ||
|
||
<!-- wp:group {"layout":{"type":"flex","flexWrap":"nowrap"}} --> | ||
<div class="wp-block-group"><!-- wp:navigation /--> | ||
</div> | ||
<!-- /wp:group --> | ||
|
||
<!-- wp:separator {"align":"full","className":"is-style-wide"} --> | ||
<hr class="wp-block-separator alignfull has-alpha-channel-opacity is-style-wide" /> | ||
<!-- /wp:separator --> | ||
</div> | ||
<!-- /wp:group --> |