hero edit button

This commit is contained in:
James Koster 2017-02-08 15:38:40 +00:00
parent 2a610c7236
commit 0babf45085
2 changed files with 9 additions and 0 deletions

View file

@ -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 {

View file

@ -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