Style the_category & comments_number post info (1 post)

  1. ScottH
    Posted 8 years ago #


    I imagine this to be quite simple although the logic has escaped me...

    I am using a templated called "Blocked-10" by "The Undersigned".
    I have succesfully managed to change the background of the posts area of the pages from green to white. The problem I have is that the post info displayed after each post is in white, which means it's not visible against my new white background.
    All I would like to do is change the "the_category" and "comments_number" outputs to the color of my choice.
    I have tried adding a new style in my stylesheet but could not manage to apply it to the php code.
    The line of code I would like to change the colour of is:

    <div class="postinfo">
    Filed by <?php the_author(); ?> at <?php the_time('F jS, Y') ?> under <?php the_category(', ') ?> | "><?php comments_number('No comments', '1 comment', '% comments'); ?>

    As you can see, there is already a style applied but this does not take effect on the "the_category" and "comments_number" parameters.

    I hope someone can educate me and show me the code required.

    Thanks very much.

Topic Closed

This topic has been closed to new replies.

About this Topic