Making WordPress.org


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.

File:
1 edited

Legend:

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