Site logo

Archived topic

Change "posted-on"-position

3 replies · Started by Timm on March 18, 2015

Viewing posts 1–4 of 4

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

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 :)

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

Cheers

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.

This archived topic is closed to new replies.