Tagged: 

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #21801

    Great theme. Thank you guys for all the support!

    Question about the format of the date for blogs in the Choices theme. Although the date format is really cool with the overlapping circles, I’d like the blog date to have a more standard look and feel to it.

    Similar to this format (with the date right under post title):

    http://www.theneurocore.com/blog

    Along with CSS changes, where would I change the code to get the date to show up underneath the post title?

    #113159

    Hi andreanapie,

    Kindly open wp-content/themes/choices/includes/loop-index.php and find this code block(line 70):

    <span class='date-container date-container-mobile minor-meta meta-color'><?php echo get_the_date(); ?></span>
    <!--meta info-->
    <div class="<?php avia_layout_class('meta'); ?> units blog-meta">

    <div class='side-container side-container-date'>

    <div class='side-container-inner'>
    <div class="date">
    <span class='day'><?php the_time('d') ?></span>
    <span class='date_group'>
    <span class='month'><?php the_time('M') ?></span>
    <span class='year'><?php the_time('Y') ?></span>
    </span>
    </div><!-- end date -->

    <!--
    <span class='date-container minor-meta meta-color'><?php echo get_the_date() ?></span>
    <div class='post-format-icon'></div>
    -->
    </div>

    </div>

    </div><!--end meta info-->

    <div class="<?php avia_layout_class('entry'); ?> units entry-content <?php echo $post_format; ?>-content">

    <?php

    //echo the post title
    echo $title;

    // subtitle
    echo $subtitle;

    // echo the post content
    echo $content;

    Replace it with:

    <div class="<?php avia_layout_class('entry'); ?> units entry-content <?php echo $post_format; ?>-content">

    <?php

    //echo the post title
    echo $title;

    // subtitle
    echo $subtitle;

    ?>
    <!--meta info-->
    <div class="blog-meta-custom">

    <div class='side-container side-container-date'>

    <div class='side-container-inner-custom'>
    <div class="date">
    <span class="posted">Posted on </span>
    <span class='month'><?php the_time('F') ?></span>
    <span class='day'><?php the_time('d') ?></span>,
    <span class='year'><?php the_time('Y') ?></span>
    </div><!-- end date -->

    <!--
    <span class='date-container minor-meta meta-color'><?php echo get_the_date() ?></span>
    <div class='post-format-icon'></div>
    -->
    </div>

    </div>

    </div><!--end meta info-->
    <?php
    // echo the post content
    echo $content;

    Hope this helps.

    Regards,

    Ismael

    #113160

    This works great! Thank you so much!

    #113161

    Hi andreanapier1,

    Glad we could help. :)

    Cheers,

    Ismael

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

The topic ‘Format of Date for Blog Posts’ is closed to new replies.