Title: Customize WordPress Byline
Last modified: April 27, 2018

---

# Customize WordPress Byline

 *  Resolved [kertoon](https://wordpress.org/support/users/kertoon/)
 * (@kertoon)
 * [8 years ago](https://wordpress.org/support/topic/customize-wordpress-byline/)
 * How do I customize the byline of my blog? Reduce font size and have different
   color for author name.
    I tried using the div class “entry-byline” to customize,
   but it doesn’t work. Please advise.
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fcustomize-wordpress-byline%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 9 replies - 1 through 9 (of 9 total)

 *  [Naveen Kharwar](https://wordpress.org/support/users/naveenkharwar/)
 * (@naveenkharwar)
 * [8 years ago](https://wordpress.org/support/topic/customize-wordpress-byline/#post-10223745)
 * Hi [@kertoon](https://wordpress.org/support/users/kertoon/)
    show your css code.
 *  Thread Starter [kertoon](https://wordpress.org/support/users/kertoon/)
 * (@kertoon)
 * [8 years ago](https://wordpress.org/support/topic/customize-wordpress-byline/#post-10223750)
 * .entry-byline {
    font-size: small; }
 *  [Naveen Kharwar](https://wordpress.org/support/users/naveenkharwar/)
 * (@naveenkharwar)
 * [8 years ago](https://wordpress.org/support/topic/customize-wordpress-byline/#post-10223752)
 * [@kertoon](https://wordpress.org/support/users/kertoon/)
    your codes are working
   😀 but you have to wrap
 *     ```
       <a href="<?php echo get_author_posts_url(get_the_author_meta('ID'));   ?>">
        <?php the_author(); ?>
        </a>
       ```
   
 * inside div.
 *  Thread Starter [kertoon](https://wordpress.org/support/users/kertoon/)
 * (@kertoon)
 * [8 years ago](https://wordpress.org/support/topic/customize-wordpress-byline/#post-10223759)
 * Presently, my code is this:
    <div class=”entry-byline”><div style=”text-align:
   center”> <?php $u_time = get_the_time(‘U’); $u_modified_time = get_the_modified_time(‘
   U’); if ($u_modified_time >= $u_time + 86400) { echo “Last updated on “; the_modified_time(‘
   F jS, Y’); echo ” “; } else {echo ” “; the_time(‘F jS Y’);} ?>by <?php the_author_posts_link();?
   ><!–<time <?php hybrid_attr( ‘entry-published’ ); ?>></time>–!></div> <!–<?php
   comments_popup_link( number_format_i18n( 0 ), number_format_i18n( 1 ), ‘%’, ‘
   comments-link’, ” ); ?>–> </div><!– .entry-byline –>
 * You don’t mind show me precisely as how I should do it.
 * Please bear with me, as I’m digitally-challenged.
 *  [Naveen Kharwar](https://wordpress.org/support/users/naveenkharwar/)
 * (@naveenkharwar)
 * [8 years ago](https://wordpress.org/support/topic/customize-wordpress-byline/#post-10223769)
 * Man Make it Simple
 *     ```
       <div class=”entry-byline”>
       <small>
       By 
       <a href="<?php echo get_author_posts_url(get_the_author_meta('ID'));   ?>">
       <?php the_author(); ?>
       </a>
       </small>
       </div>
       <small> On
       <?php the_time('F j, Y'); ?>
       </small>
       ```
   
 * In CSS
    .entry-byline{ font-color:red; }
    -  This reply was modified 8 years ago by [Naveen Kharwar](https://wordpress.org/support/users/naveenkharwar/).
 *  Thread Starter [kertoon](https://wordpress.org/support/users/kertoon/)
 * (@kertoon)
 * [8 years ago](https://wordpress.org/support/topic/customize-wordpress-byline/#post-10223776)
 * Just to check with you.
 * With your code as suggested above, the customization of displaying the Last Updated
   Date of my posts still work?
 *  [Naveen Kharwar](https://wordpress.org/support/users/naveenkharwar/)
 * (@naveenkharwar)
 * [8 years ago](https://wordpress.org/support/topic/customize-wordpress-byline/#post-10223779)
 * No You can replace this
    `<?php the_time('F j, Y'); ?>` with this
 *     ```
       $u_time = get_the_time('U'); 
       $u_modified_time = get_the_modified_time('U'); 
       if ($u_modified_time >= $u_time + 86400) { 
       echo "<p>Last modified on "; 
       the_modified_time('F jS, Y'); 
       echo " at "; 
       the_modified_time(); 
       echo "</p> "; } 
       ```
   
 *  Thread Starter [kertoon](https://wordpress.org/support/users/kertoon/)
 * (@kertoon)
 * [8 years ago](https://wordpress.org/support/topic/customize-wordpress-byline/#post-10223807)
 * Thank you very much Naveen for your time and effort. You have a nice day.
 *  [Naveen Kharwar](https://wordpress.org/support/users/naveenkharwar/)
 * (@naveenkharwar)
 * [8 years ago](https://wordpress.org/support/topic/customize-wordpress-byline/#post-10223813)
 * Welcome 🙂

Viewing 9 replies - 1 through 9 (of 9 total)

The topic ‘Customize WordPress Byline’ is closed to new replies.

## Tags

 * [customization](https://wordpress.org/support/topic-tag/customization/)
 * [font](https://wordpress.org/support/topic-tag/font/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 9 replies
 * 2 participants
 * Last reply from: [Naveen Kharwar](https://wordpress.org/support/users/naveenkharwar/)
 * Last activity: [8 years ago](https://wordpress.org/support/topic/customize-wordpress-byline/#post-10223813)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
