Support » Themes and Templates » [Resolved] Moving the date under the post title – Blaskan!!

[Resolved] Moving the date under the post title – Blaskan!!

  • I am trying to edit and move the date of the entries to under the post title. I have literally googled everything and cannot come up with the answer. I am working with a child theme and have made several changes to the site.

    Here is what I want to do:
    -Move post date under post title.
    -Change post date’s color, spacing, text-decoration, padding, etc.
    -Add a horizontal dotted line (similar to at the end of the post) to under the post title and date.

    Any help would be greatly appreciated. I have read and tried changing the loop file, but when I moved the the_date and “time” under the header, I was unable to change anything else on the site.

    [ Link removed per posters request ]

Viewing 8 replies - 1 through 8 (of 8 total)
  • In the loop.php file move line 35-37 to between line 47-48 :

    <?php elseif ( get_the_title() ): ?>
       <h1><?php the_title(); ?></h1>
    <?php endif; ?>
    <?php if ( get_post_type() !== 'page' ): ?>
      <time datetime="<?php the_date('c'); ?>" pubdate><?php print get_the_date(); ?></time>
    <?php endif; ?>

    The rest will be done through your css child.

    I’ve never got to deep into child themes, but I think you can copy loop.php into your child and make the changes there.

    Thanks Kevinhaig for responding. This doesn’t make sense to me at all. I found this code in the loop.php file around lines 47.

    <?php elseif ( get_the_title() ): ?>
    <h1><?php the_title(); ?></h1>
    <?php endif; ?>

    But you said move it from lines 35-37 to between 47-48. Unfortunately, I believe this is either switched or my loop file is different. This code actually comes before the code above.

    <?php if ( get_post_type() !== ‘page’ ): ?>
    <time datetime=”<?php the_date(‘c’); ?>” pubdate><?php print get_the_date(); ?></time>
    <?php endif; ?>

    I also tried making the switch in my child css file so I don’t know if thats why it didn’t work or not. This is driving me nuts!

    I was not using a child theme

    I downloaded the theme and tried the change I showed you above and it worked fine.

    What I pasted above is how it should appear when you are done.

    Also use the code tag when you paste code (before and after the code)

    I don’t get it. I understand how to move the tags, but when I literally copy and paste the code, I can’t get it to work.

    If I copy and paste the loop.php file into the child theme and make the changes above, how do I get it to work? Is there a specific code tag that I need to place before and after the loop.php file?

    Sorry this is such a hassle. I am just no good with this stuff.

    I figured out what I was doing wrong! THANKS SO MUCH KEVIN!

    Your welcome

    Hi All:
    I am trying to change the title of my posts that are listed under ‘Recent Articles” from the date the article was written to the actual title. That is, I want the title to show down the right hand column under ‘Recent Posts’ as opposed to the Date. Can anyone tell me how to do this?
    Thanks loads,



    Forum Moderator

    @glenna – if you need help, please start your own thread. This one is already marked resolved, and your question is not the same either.

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘[Resolved] Moving the date under the post title – Blaskan!!’ is closed to new replies.