Several different classes for post-date

Community Forums Forums Design Tips and Tricks Several different classes for post-date

This topic is: not resolved


This topic contains 1 reply, has 2 voices, and was last updated by  SoZo 2 years, 10 months ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
  • #10092



    I have used this code from Luscious theme

    /** Add date block before post title */
    add_action( ‘genesis_before_post_title’, ‘custom_post_date’ );
    function custom_post_date() {

    if ( ! is_page() ) {
    echo ‘<div class=”post-date”>';
    echo do_shortcode( ‘[post_date format="M j, Y"]‘ );
    echo ‘</div><!– end .post-date –>';


    I have then altered the CSS from Lucious to my custom theme which you can see here:

    Is there is any way to make a div class for the “j” in the date format so I can make my date look like like the image in the post? Yes the image is smaller but that is ok. My problem is making “15” bigger vs the month and year.

    Thanks in advance




    Please include a link to your site with all questions so that people can see what is going on.

    John “Nicolas Flamel” Wright | SoZo’s design| John Wright Photography

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

You must be logged in to reply to this topic.