Make WordPress Core

Changeset 26654


Ignore:
Timestamp:
12/05/2013 02:32:46 AM (10 years ago)
Author:
lancewillett
Message:

Twenty Fourteen: add author description below author name on author archive view, and update styles for archive header area. Props iamtakashi, closes #26420.

Location:
trunk/src/wp-content/themes/twentyfourteen
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-content/themes/twentyfourteen/author.php

    r26556 r26654  
    2929                        the_post();
    3030
    31                         printf( __( 'All posts by %s', 'twentyfourteen' ), sprintf(
    32                                 '<span class="vcard"><a class="url fn n" href="%1$s" rel="me">%2$s</a></span>',
    33                                 esc_url( get_author_posts_url( get_the_author_meta( 'ID' ) ) ),
    34                                 get_the_author()
    35                         ) );
     31                        printf( __( 'All posts by %s', 'twentyfourteen' ), get_the_author() );
    3632                    ?>
    3733                </h1>
     34                <?php if ( get_the_author_meta( 'description' ) ) : ?>
     35                <div class="author-description"><?php the_author_meta( 'description' ); ?></div>
     36                <?php endif; ?>
    3837            </header><!-- .archive-header -->
    3938
  • trunk/src/wp-content/themes/twentyfourteen/style.css

    r26653 r26654  
    16521652}
    16531653
    1654 .taxonomy-description {
     1654.taxonomy-description,
     1655.author-description {
    16551656    color: #767676;
    16561657    font-size: 14px;
    16571658    line-height: 1.2857142857;
    1658 }
    1659 
    1660 .taxonomy-description p {
     1659    padding-top: 18px;
     1660}
     1661
     1662.taxonomy-description p,
     1663.author-description p {
    16611664    margin-bottom: 18px;
    16621665}
    16631666
    1664 .taxonomy-description p:last-child {
     1667.taxonomy-description p:last-child,
     1668.author-description p:last-child {
    16651669    margin-bottom: 0;
     1670}
     1671
     1672.taxonomy-description a,
     1673.author-description a {
     1674    text-decoration: underline;
     1675}
     1676
     1677.taxonomy-description a:hover,
     1678.author-description a:hover {
     1679    text-decoration: none;
    16661680}
    16671681
Note: See TracChangeset for help on using the changeset viewer.