mirror of
https://github.com/woocommerce/storefront.git
synced 2025-08-20 04:00:29 +08:00
hero edit button
This commit is contained in:
parent
2a610c7236
commit
0babf45085
2 changed files with 9 additions and 0 deletions
|
@ -376,6 +376,14 @@ body {
|
|||
.type-page {
|
||||
padding-top: ms(5);
|
||||
padding-bottom: ms(5);
|
||||
position: relative;
|
||||
|
||||
.storefront-hero__button-edit {
|
||||
position: absolute;
|
||||
top: 1em;
|
||||
right: 1em;
|
||||
font-size: ms(-1);
|
||||
}
|
||||
}
|
||||
|
||||
.entry-content {
|
||||
|
|
|
@ -298,6 +298,7 @@ if ( ! function_exists( 'storefront_homepage_header' ) ) {
|
|||
* @since 1.0.0
|
||||
*/
|
||||
function storefront_homepage_header() {
|
||||
edit_post_link( __( 'Edit this section', 'storefront' ), '', '', '', 'button storefront-hero__button-edit' );
|
||||
?>
|
||||
<header class="entry-header">
|
||||
<?php
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue