Making WordPress.org


Ignore:
Timestamp:
04/05/2018 04:22:26 AM (6 years ago)
Author:
coreymckrill
Message:

WP15 theme: Keep locale switcher in nav bar when it becomes sticky

Ensure that the nav bar, with all navigation items and the locale switcher,
remains intact and unchanged when scrolling down past the site header, which
causes the bar to become fixed at the top.

This also changes the layout of the nav bar on narrow screens so that the
locale switcher and the menu toggle button are on separate rows, with the
switcher first, allowing the toggled menu items to expand beneath.

Fixes #3545
Props coreymckrill, melchoyce, mcsf

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wp15.wordpress.net/public_html/content/themes/twentyseventeen-wp15/header.php

    r6992 r7031  
    2323
    2424            <?php if ( has_nav_menu( 'top' ) ) : ?>
     25            <div class="navigation-top-container">
    2526                <div class="navigation-top">
    2627                    <div class="wrap">
     
    2829                    </div>
    2930                </div>
     31
     32                <?php Locales\locale_switcher(); ?>
     33            </div>
    3034            <?php endif; ?>
    31 
    32             <?php Locales\locale_switcher(); ?>
    3335        </header>
    3436
Note: See TracChangeset for help on using the changeset viewer.