Making WordPress.org


Ignore:
Timestamp:
02/27/2018 11:31:19 PM (6 years ago)
Author:
obenland
Message:

WP.org: Update about pages with child nav

Also fixes a minor issue for toggled navigations on small screens for all themes.

Props mapk, obenland.
See #3046.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-main/page-about-history.php

    r6756 r6797  
    1313    return get_template_part( 'page' );
    1414}
     15
     16$GLOBALS['menu_items'] = [
     17    'requirements' => __( 'Requirements', 'wporg' ),
     18    'features'     => __( 'Features', 'wporg' ),
     19    'security'     => __( 'Security', 'wporg' ),
     20    'roadmap'      => __( 'Roadmap', 'wporg' ),
     21    'history'      => __( 'History', 'wporg' ),
     22];
    1523
    1624// Prevent Jetpack from looking for a non-existent featured image.
     
    2937} );
    3038
    31 get_header();
     39get_header( 'child-page' );
    3240the_post();
    3341?>
     
    3745        <article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
    3846            <header class="entry-header">
    39                 <h1 class="entry-title"><?php _esc_html_e( 'History', 'wporg' ); ?></h1>
     47                <h1 class="entry-title col-8"><?php _esc_html_e( 'History', 'wporg' ); ?></h1>
    4048            </header><!-- .entry-header -->
    4149
Note: See TracChangeset for help on using the changeset viewer.