Making WordPress.org

Changeset 11647


Ignore:
Timestamp:
03/07/2022 11:29:44 PM (2 years ago)
Author:
coffee2code
Message:

Photo Directory: Improve headings.

Converts all but a singular header heading from h1 to h2. No design changes necessary.

Props alexstine.
Fixes #6141.

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

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-photos/archive.php

    r11459 r11647  
    1818        <?php if ( ! is_post_type_archive( Registrations::get_post_type() ) ) : ?>
    1919            <header class="page-header">
    20                 <h1 class="page-title"><?php the_archive_title(); ?></h1>
     20                <h2 class="page-title"><?php the_archive_title(); ?></h2>
    2121            </header><!-- .page-header -->
    2222        <?php endif; ?>
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-photos/author.php

    r11459 r11647  
    1818
    1919            <header class="page-header">
    20                 <h1 class="page-title">
     20                <h2 class="page-title">
    2121                    <?php
    2222                    printf(
     
    3030                    );
    3131                    ?>
    32                 </h1>
     32                </h2>
    3333            </header><!-- .page-header -->
    3434
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-photos/functions.php

    r11553 r11647  
    8787 */
    8888function scripts() {
    89     wp_enqueue_style( 'wporg-style', get_stylesheet_directory_uri() .  '/css/style.css', [ 'dashicons', 'open-sans' ], '20220214' );
     89    wp_enqueue_style( 'wporg-style', get_stylesheet_directory_uri() .  '/css/style.css', [ 'dashicons', 'open-sans' ], '20220303' );
    9090    wp_style_add_data( 'wporg-style', 'rtl', 'replace' );
    9191
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-photos/header.php

    r11552 r11647  
    3434        <header id="masthead" class="site-header <?php echo $show_full_header ? 'home' : ''; ?>" role="banner">
    3535            <div class="site-branding">
     36                <h1 class="site-title"><a href="<?php echo esc_url( home_url( '/' ) ); ?>" rel="home"><?php echo esc_html_x( 'Photos', 'Site title', 'wporg-photos' ); ?></a></h1>
    3637                <?php if ( $show_full_header ) : ?>
    37                     <h1 class="site-title"><a href="<?php echo esc_url( home_url( '/' ) ); ?>" rel="home"><?php echo esc_html_x( 'Photos', 'Site title', 'wporg-photos' ); ?></a></h1>
    38 
    3938                    <p class="site-description">
    4039                        <?php
     
    4948                    <?php get_search_form(); ?>
    5049                <?php else : ?>
    51                     <p class="site-title"><a href="<?php echo esc_url( home_url( '/' ) ); ?>" rel="home"><?php echo esc_html_x( 'Photos', 'Site title', 'wporg-photos' ); ?></a></p>
    52 
    5350                    <nav id="site-navigation" class="main-navigation" role="navigation">
    5451                        <button class="menu-toggle dashicons dashicons-arrow-down-alt2" aria-controls="primary-menu" aria-expanded="false" aria-label="<?php esc_attr_e( 'Primary Menu', 'wporg-photos' ); ?>"></button>
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-photos/search.php

    r11459 r11647  
    1818
    1919            <header class="page-header">
    20                 <h1 class="page-title">
     20                <h2 class="page-title">
    2121                    <?php
    2222                    printf(
     
    2626                    );
    2727                    ?>
    28                 </h1>
     28                </h2>
    2929            </header><!-- .page-header -->
    3030
     
    4343
    4444            <header class="page-header">
    45                 <h1 class="page-title">
     45                <h2 class="page-title">
    4646                    <?php _e( 'Nothing Found', 'wporg-photos' ); ?>
    47                 </h1>
     47                </h2>
    4848            </header>
    4949
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-photos/template-parts/content-page-c.php

    r11459 r11647  
    1515
    1616<header class="page-header">
    17     <h1 class="page-title">
     17    <h2 class="page-title">
    1818        <?php _e( 'Categories', 'wporg-photo' ); ?>
    19     </h1>
     19    </h2>
    2020</header><!-- .page-header -->
    2121
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-photos/template-parts/content-page-color.php

    r11551 r11647  
    1515
    1616<header class="page-header">
    17     <h1 class="page-title">
     17    <h2 class="page-title">
    1818        <?php _e( 'Colors', 'wporg-photo' ); ?>
    19     </h1>
     19    </h2>
    2020
    2121    <p><?php _e( 'Browse photos predominantly featuring one of these colors&hellip;', 'wporg-photos' ); ?></p>
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-photos/template-parts/content-page-orientation.php

    r11459 r11647  
    1515
    1616<header class="page-header">
    17     <h1 class="page-title">
     17    <h2 class="page-title">
    1818        <?php _e( 'Orientations', 'wporg-photo' ); ?>
    19     </h1>
     19    </h2>
    2020
    2121    <p><?php _e( 'Browse photos by orientation&hellip;', 'wporg-photos' ); ?></p>
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-photos/template-parts/content-page-submit.php

    r11459 r11647  
    1212<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
    1313    <header class="entry-header">
    14         <?php the_title( '<h1 class="entry-title">', '</h1>' ); ?>
     14        <?php the_title( '<h2 class="entry-title">', '</h2>' ); ?>
    1515    </header><!-- .entry-header -->
    1616
Note: See TracChangeset for help on using the changeset viewer.