[wp-trac] [WordPress Trac] #52938: Twenty Twenty-One: H1 is misplaced for a page set as blogpost container

WordPress Trac noreply at wordpress.org
Thu Apr 1 07:52:42 UTC 2021


#52938: Twenty Twenty-One: H1 is misplaced for a page set as blogpost container
---------------------------+--------------------------------
 Reporter:  rianrietveld   |       Owner:  (none)
     Type:  defect (bug)   |      Status:  new
 Priority:  normal         |   Milestone:  5.8
Component:  Bundled Theme  |     Version:  5.6
 Severity:  normal         |  Resolution:
 Keywords:                 |     Focuses:  ui, accessibility
---------------------------+--------------------------------

Comment (by mukesh27):

 @justinahinon thanks for confirming.

 If we select the Posts page as the existing page then it will show the
 title of that page.

 But For Settings > Reading > Your latest posts option shows an empty
 title. https://tinyurl.com/yez25bbn

 Need to update the patch with the condition something like below.

 {{{

 if ( ! is_home() ) {
    <header class="page-header alignwide">
         <h1 class="page-title"><?php single_post_title(); ?></h1>
    </header><!-- .page-header -->
 }

 }}}

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/52938#comment:5>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list