[Resolved] Change "posted-on"-position

Home Forums Support [Resolved] Change "posted-on"-position

Home Forums Support Change "posted-on"-position

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

    Dear Tom,

    since I’m so far very happy with your template, I do have a question I can’t find a solution for.
    I want to change the way, the “posted-on”-Date ist displayed. For me it should be placed behind the posts title, rather than underneath. I can not find a way of implementing that into my child-theme because I have no clue where it is handled in your theme.
    Am I missing something, or am I just to unexperienced with php?

    Thanks for your help!

    Timm

    #88390
    Tom
    Lead Developer
    Lead Developer

    Hi there,

    You want your meta info (date, author etc..) to display before the title?

    If so, you’ll need to create a child theme:

    Then, copy content.php from the parent theme into the child theme.

    Once that’s done, open your child theme content.php file, and look for this:

    <?php if ( 'post' == get_post_type() ) : ?>
    	<div class="entry-meta">
    		<?php generate_posted_on(); ?>
    	</div><!-- .entry-meta -->
    <?php endif; ?>

    Copy that text, then remove it.

    Now place it above the <h2> above it.

    That should do it ๐Ÿ™‚

    #88518
    Timm

    Thank you!
    It worked out great. Though I had to do the equivalent at the content-single.php too.

    Cheers

    #88755
    Tom
    Lead Developer
    Lead Developer

    Awesome ๐Ÿ™‚

    Keep an eye on these files in new versions as I might change/update/improve them bit by bit, so you may need to keep your child theme files updated as I do that.

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.