0
votes

i am working on my wordpress theme, and comment time/date are showing up in one continuous timestamp tag:

<time datetime="2015-12-21T19:09:49+00:00"> december 21st,  2015 on 19:09 </time>

i would like to have the time of day be wrapped in a span tag, so i can style it with css. the comment.php file on my theme uses this to list the comments, and there's no way to edit the timestamp here:

    <ol class="comment-list">
        <?php
            wp_list_comments( array(
                'style'       => 'ol',
                'format'      => 'html5',
                'short_ping'  => true,
            ) );
        ?>
    </ol>

i tried looking at my theme's functions.php, as well as wordpress' include files: comment.php and comment-template.php. none of them deal with the actual tag structure of the time-stamp, so there was nothing there for me to play with.

does anyone have any idea how i can do this? obviously, i'd rather do it in my theme's functions.php than alter the wp inc stuff..

thanks!

1

1 Answers

0
votes

Usually the comment date stamp is defined by : .comment-metadata a, .pingback .comment-edit-link Search for something like this in style.css and you can style them.