Making WordPress.org


Ignore:
Timestamp:
11/18/2020 03:53:35 PM (4 years ago)
Author:
ryelle
Message:

Theme Directory: Trigger scrolling with a Load More button.

Remove the automatic scroll-based trigger in favor of a Load More button. This will let people actually get to the content in the footer of the site.

Props iandstewart, dingo_d, dufresnesteven.
Fixes #5153.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-themes/index.php

    r9860 r10451  
    2222
    2323            <ul class="filter-links">
    24                 <?php /* <li><a href="<?php echo esc_url( home_url( 'browse/featured/' ) ); ?>" data-sort="featured" <?php if ( (is_front_page() && !get_query_var('browse') ) || 'featured' == get_query_var('browse') ) { echo 'class="current"'; } ?>><?php _ex( 'Featured', 'themes', 'wporg-themes' ); ?></a></li> */ ?>
    2524                <li><a href="<?php echo esc_url( home_url( '/' ) ); ?>" data-sort="popular" <?php if ( (is_front_page() && !get_query_var('browse') ) || 'popular' == get_query_var('browse') ) { echo 'class="current"'; } ?>><?php _ex( 'Popular', 'themes', 'wporg-themes' ); ?></a></li>
    2625                <li><a href="<?php echo esc_url( home_url( 'browse/new/' ) ); ?>" data-sort="new" <?php if ( 'new' == get_query_var('browse') ) { echo 'class="current"'; } ?>><?php _ex( 'Latest', 'themes', 'wporg-themes' ); ?></a></li>
     
    8483            <p class="no-themes"><?php _e( 'No themes found. Try a different search.', 'wporg-themes' ); ?></p>
    8584        </div>
     85        <div class="theme-load-more">
     86            <button class="button button-primary button-large js-load-more-themes"><?php esc_html_e( 'Load more themes', 'wporg-themes' ); ?></button>
     87        </div>
    8688        <div class="theme-install-overlay"></div>
    8789        <div class="theme-overlay"></div>
Note: See TracChangeset for help on using the changeset viewer.