Making WordPress.org

Changeset 13485


Ignore:
Timestamp:
04/10/2024 04:04:23 AM (3 years ago)
Author:
adamwood
Message:

wporg-support-2024: Fix headings hierarchy

Updates the sidebar headings to h2 and h3 to correct the headings hierarchy

See https://meta.trac.wordpress.org/ticket/4117

Location:
sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-support-2024
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-support-2024/functions.php

    r13467 r13485  
    494494                }
    495495
    496                 $output .= sprintf( '<a class="bbp-view-title wp-block-wporg-link-wrapper is-layout-flow wp-block-wporg-link-wrapper-is-layout-flow" href="%s"><h5 class="wp-block-heading has-inter-font-family has-small-font-size" style="font-weight:700;margin-bottom:0">%s</h5></a>',
     496                $output .= sprintf( '<a class="bbp-view-title wp-block-wporg-link-wrapper is-layout-flow wp-block-wporg-link-wrapper-is-layout-flow" href="%s"><h3 class="wp-block-heading has-inter-font-family has-small-font-size" style="font-weight:700;margin-bottom:0">%s</h3></a>',
    497497                        esc_url( bbp_get_view_url( $view ) ),
    498498                        bbp_get_view_title( $view )
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-support-2024/sass/site/_site.scss

    r13478 r13485  
    330330        }
    331331
    332         h4 {
     332        h2 {
    333333                font-weight: 400;
    334334                font-size: var(--wp--preset--font-size--normal);
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-support-2024/sidebar.php

    r13455 r13485  
    4343                        <div>
    4444                                <?php bbp_topic_tag_list( 0, array(
    45                                         'before' => '<h4>' . __( 'Tags', 'wporg-forums' ) . '</h4><ul class="topic-tags"><li class="tag">',
     45                                        'before' => '<h2>' . __( 'Tags', 'wporg-forums' ) . '</h2><ul class="topic-tags"><li class="tag">',
    4646                                        'after'  => '</li></ul>',
    4747                                        'sep'    => '</li><li class="tag">',
    … …  
    6060                                        <?php bbp_topic_admin_links( array (
    6161                                                'id'     => bbp_get_topic_id(),
    62                                                 'before' => '<h4>' . __( 'Admin', 'wporg-forums' ) . '</h4><ul class="topic-admin-links"><li>',
     62                                                'before' => '<h2>' . __( 'Admin', 'wporg-forums' ) . '</h2><ul class="topic-admin-links"><li>',
    6363                                                'after'  => '</li></ul>',
    6464                                                'sep'    => '</li><li>',
    … …  
    8686
    8787                        <div>
    88                                 <h4><?php _e( 'Topics', 'wporg-forums' ); ?></h4>
     88                                <h2><?php _e( 'Topics', 'wporg-forums' ); ?></h2>
    8989
    9090                                <?php echo do_blocks(
    … …  
    103103
    104104                        <div>
    105                                 <h4><?php _e( 'Feeds', 'wporg-forums' ); ?></h4>
     105                                <h2><?php _e( 'Feeds', 'wporg-forums' ); ?></h2>
    106106                                <ul class="forum-feeds">
    107107                                        <li><a class="feed" href="<?php bbp_forums_url(); ?>feed/"><?php _e( 'RSS Recent Posts', 'wporg-forums' ); ?></a></li>
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-support-2024/style-rtl.css

    r13484 r13485  
    24142414        text-decoration: underline;
    24152415}
    2416 .sidebar h4, .sidebar .bbp-view .review-ratings .col-5 > div:first-child, .bbp-view .review-ratings .sidebar .col-5 > div:first-child {
     2416.sidebar h2 {
    24172417        font-weight: 400;
    24182418        font-size: var(--wp--preset--font-size--normal);
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-support-2024/style.css

    r13484 r13485  
    24142414        text-decoration: underline;
    24152415}
    2416 .sidebar h4, .sidebar .bbp-view .review-ratings .col-5 > div:first-child, .bbp-view .review-ratings .sidebar .col-5 > div:first-child {
     2416.sidebar h2 {
    24172417        font-weight: 400;
    24182418        font-size: var(--wp--preset--font-size--normal);
Note: See TracChangeset for help on using the changeset viewer.