Skip to content

Commit

Permalink
Add entry-title class to core/post-title block.
Browse files Browse the repository at this point in the history
  • Loading branch information
felixarntz committed Sep 18, 2019
1 parent 1723b8f commit 89db348
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions packages/block-library/src/post-title/edit.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ export default function PostTitleEdit() {
</Button>
<RichText
tagName="h1"
className="entry-title"
formattingControls={ [] }
placeholder={ __( 'Title' ) }
value={ title }
Expand Down
2 changes: 1 addition & 1 deletion packages/block-library/src/post-title/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ function render_block_core_post_title() {
return '';
}

return the_title( '<h1>', '</h1>', false );
return the_title( '<h1 class="entry-title">', '</h1>', false );
}

/**
Expand Down

0 comments on commit 89db348

Please sign in to comment.