Viewing 2 replies - 1 through 2 (of 2 total)
  • Just add a ” | ” in the code:

    <div id="author"><i><?php $author_display_name = get_the_author_meta( 'display_name' );
    $bk_author_id = $post->post_author;
    printf('<div class="author" itemprop="author" >%s</div>', '<a rel="author" href="'.get_author_posts_url( get_the_author_meta( 'ID' ) ).'" title="'.sprintf(__('Posts by %s','bkninja'), $author_display_name).'">'.$author_display_name.'</a>') ?></i></div>
    <div id="date"><p><?php echo ' | '.get_the_date(); ?></p></div>

    I added it just before get_the_date().

    That should work.

    Thread Starter legarreta

    (@legarreta)

    Thanks very much, that did the trick!

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

The topic ‘Add a " | " between two CSS elements.’ is closed to new replies.