Make WordPress Core


Ignore:
Timestamp:
10/25/2016 04:50:49 PM (8 years ago)
Author:
karmatosed
Message:

Twenty Seventeen: Display scroll down arrow when no menu

This improves scrollability without a menu.

Props nnaimov, melchoyce, davidakennedy
Fixes #38392

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-content/themes/twentyseventeen/template-parts/header/site-branding.php

    r38872 r38909  
    2828        </div><!-- .site-branding-text -->
    2929
     30        <?php if ( ( twentyseventeen_is_frontpage() || ( is_home() && is_front_page() ) ) && ! has_nav_menu( 'top' ) ) : ?>
     31        <a href="#content" class="menu-scroll-down"><?php echo twentyseventeen_get_svg( array( 'icon' => 'next' ) ); ?><span class="screen-reader-text"><?php _e( 'Scroll Down', 'twentyseventeen' ); ?></span></a>
     32    <?php endif; ?>
     33
    3034    </div><!-- .wrap -->
    3135</div><!-- .site-branding -->
Note: See TracChangeset for help on using the changeset viewer.