• I would like to move the date from the bottom of the post to appear between the title and the post. How would I go about doing that?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Moderator Kathryn Presner

    (@zoonini)

    Are you trying to move the date on single post pages, the blog index page, or both?

    The date in Writr is displayed via a function called writr_meta(); which outputs a few other things alongside the date, such as the author (for multi-author blogs), tags, and a link to comment.

    The easiest thing to do is move that entire function to a different spot in the theme, not just the date. If that works for you, let me know the answer to the first question, and I can lend a hand.

    The first thing you’ll need to do to get ready is set up a child theme, so your tweaks won’t be overwritten when updating the theme. Here are some guides in case you haven’t made one before:

    http://codex.wordpress.org/Child_Themes
    http://op111.net/53/

    Thread Starter Steve

    (@rjsteve)

    Thanks in advance for your help.

    I want to change the date on the single posts and the blog index page both — where ever a post appears.

    I do have a child theme in place.

    Thanks!

    Moderator Kathryn Presner

    (@zoonini)

    Here’s one way to do it:

    For the blog index, make a copy of content.php and put it in your child theme.

    Move these lines below line 25:

    <?php if ( 'post' == get_post_type() ) : // Hide meta for pages on Search ?>
      <footer class="entry-meta">
        <ul class="clear">
          <?php writr_meta(); ?>
        </ul>
      </footer><!-- .entry-meta -->
    <?php endif; ?>

    To do the same on your single posts, copy content-single.php into your child theme. Move these lines below line 31:

    <footer class="entry-meta">
      <ul class="clear">
        <?php writr_meta(); ?>
      </ul>
    </footer><!-- .entry-meta -->

    If you want to hide the double lines that come along with the post footer styles, you can add this to your child theme:

    .entry-meta {
        border-top: none;
    }

    I tested this on my end and it looks good! Let me know how it goes.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Date under post title’ is closed to new replies.