Making WordPress.org


Ignore:
Timestamp:
02/02/2023 10:23:21 PM (18 months ago)
Author:
coffee2code
Message:

Photo Directory: Add a link above-the-fold on the front page to submit a photo.

This makes it immediately clear that contributing photos is something that can be done (which, for most people, they can reasonably do) and saves having to scroll past the front page photo grid to get to the submit link.

This is only necessary on the front page since a submit link appears in the nav menu shown on every other page.

File:
1 edited

Legend:

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

    r12022 r12383  
    4747                    </p>
    4848                    <?php get_search_form(); ?>
     49
     50                    <p class="site-contribute">
     51                        <?php
     52                            printf(
     53                                __( 'Or <a href="%s">contribute</a> your own photos!', 'wporg-photos' ),
     54                                esc_url( get_permalink( get_page_by_path( 'submit' ) ) )
     55                            );
     56                        ?>
     57                    </p>
    4958                <?php else : ?>
    5059                    <nav id="site-navigation" class="main-navigation" role="navigation">
     
    6574            </div><!-- .site-branding -->
    6675        </header><!-- #masthead -->
    67 
Note: See TracChangeset for help on using the changeset viewer.