• Resolved kertoon

    (@kertoon)


    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 to see the link]

Viewing 9 replies - 1 through 9 (of 9 total)
  • Hi @kertoon
    show your css code.

    Thread Starter kertoon

    (@kertoon)

    .entry-byline {
    font-size: small;
    }

    @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

    (@kertoon)

    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.

    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;
    }

    Thread Starter kertoon

    (@kertoon)

    Just to check with you.

    With your code as suggested above, the customization of displaying the Last Updated Date of my posts still work?

    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

    (@kertoon)

    Thank you very much Naveen for your time and effort. You have a nice day.

    Welcome ??

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Customize WordPress Byline’ is closed to new replies.