Making WordPress.org


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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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>',
Note: See TracChangeset for help on using the changeset viewer.