Making WordPress.org

Ticket #6141: 6141.diff

File 6141.diff, 3.4 KB (added by alexstine, 3 years ago)

Keeps Photos site title as heading 1 for all pages. Change existing heading 1 to heading 2.

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

     
    1717
    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; ?>
    2323
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-photos/author.php

     
    1717                <?php if ( have_posts() ) : ?>
    1818
    1919                        <header class="page-header">
    20                                 <h1 class="page-title">
     20                                <h2 class="page-title">
    2121                                        <?php
    2222                                        printf(
    2323                                                /* translators: Search query. */
     
    2929                                                                                )
    3030                                        );
    3131                                        ?>
    32                                 </h1>
     32                                </h2>
    3333                        </header><!-- .page-header -->
    3434
    3535                <?php
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-photos/header.php

     
    3333        <div id="content" class="site-content">
    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>
     37
    3638                                <?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 
    3939                                        <p class="site-description">
    4040                                                <?php
    4141                                                $photo_count = get_photos_count();
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-photos/search.php

     
    1717                <?php if ( have_posts() ) : ?>
    1818
    1919                        <header class="page-header">
    20                                 <h1 class="page-title">
     20                                <h2 class="page-title">
    2121                                        <?php
    2222                                        printf(
    2323                                                /* translators: Search query. */
     
    2525                                                '<strong>' . sanitize_text_field( get_search_query( false ) ) . '</strong>'
    2626                                        );
    2727                                        ?>
    28                                 </h1>
     28                                </h2>
    2929                        </header><!-- .page-header -->
    3030
    3131                <?php
     
    4242                        <section class="no-results not-found">
    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
    5050                        <p><?php _e( 'Sorry, but nothing matched your search terms.', 'wporg-photos' ); ?></p>