Making WordPress.org

Changeset 9736


Ignore:
Timestamp:
04/16/2020 03:19:59 AM (5 years ago)
Author:
tellyworth
Message:

Plugin dir: improve heading hierarchy.

Theme changes for SEO and a11y.

Props afercia, dufresnesteven.
Fixes #4115.

Location:
sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-plugins
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-plugins/front-page.php

    r7956 r9736  
    1919
    2020$widget_args = array(
    21     'before_title' => '<h3 class="widget-title">',
    22     'after_title'  => '</h3>',
     21    'before_title' => '<h2 class="widget-title">',
     22    'after_title'  => '</h2>',
    2323);
    2424
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-plugins/template-parts/plugin-sidebar-advanced.php

    r8656 r9736  
    1111
    1212$widget_args = array(
    13     'before_title' => '<h4 class="widget-title">',
    14     'after_title'  => '</h4>',
     13    'before_title' => '<h2 class="widget-title">',
     14    'after_title'  => '</h2>',
    1515);
    1616
     
    2929
    3030the_widget( 'WordPressdotorg\Plugin_Directory\Widgets\Contributors', array(), array(
    31     'before_title'  => '<h4 class="widget-title">',
    32     'after_title'   => '</h4>',
     31    'before_title'  => '<h2 class="widget-title">',
     32    'after_title'   => '</h2>',
    3333    'before_widget' => '<div id="plugin-contributors" class="widget plugin-contributors">',
    3434    'after_widget'  => '</div>',
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-plugins/template-parts/plugin-sidebar.php

    r8656 r9736  
    1111
    1212$widget_args = array(
    13     'before_title' => '<h3 class="widget-title">',
    14     'after_title'  => '</h3>',
     13    'before_title' => '<h2 class="widget-title">',
     14    'after_title'  => '</h2>',
    1515);
    1616
     
    1919the_widget( 'WordPressdotorg\Plugin_Directory\Widgets\Ratings', array(), $widget_args );
    2020the_widget( 'WordPressdotorg\Plugin_Directory\Widgets\Contributors', array(), array(
    21     'before_title'  => '<h4 class="widget-title">',
    22     'after_title'   => '</h4>',
     21    'before_title'  => '<h2 class="widget-title">',
     22    'after_title'   => '</h2>',
    2323    'before_widget' => '<div id="plugin-contributors" class="widget plugin-contributors">',
    2424    'after_widget'  => '</div>',
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-plugins/template-parts/plugin.php

    r9234 r9736  
    2424    </div><div class="entry">
    2525        <header class="entry-header">
    26             <?php the_title( '<h2 class="entry-title"><a href="' . esc_url( get_permalink() ) . '" rel="bookmark">', '</a></h2>' ); ?>
     26            <?php the_title( '<h3 class="entry-title"><a href="' . esc_url( get_permalink() ) . '" rel="bookmark">', '</a></h3>' ); ?>
    2727        </header><!-- .entry-header -->
    2828
Note: See TracChangeset for help on using the changeset viewer.