• my post date code is <div class=”post-date”><?php the_time(‘j M Y H i’); ?></div> and it will show for exmple : 14 apr 2013 11.30. how to create space between the date (14 apr 2013) and time (11.30) so it can show like this : 14 apr 2013___11.30 ??
    i’m new in wordpress and i dont know anything about php so please somebody help me ??

Viewing 1 replies (of 1 total)
  • In your child theme you can do the following;

    Note if you are not using a child theme see here as you should not edit the core files of a theme

    You could put them in different divs and add styling to each div.

    Example:

    <div class="post-date"><?php the_time('j M Y'); ?></div><div class"post-time"><?php the_time('H i'); ?></div>

    Then all you need to do is change the css. so in your css if you added

    .post-time {
    margin-left: 40px
    }

    This would add a margin of 40px between the date and the time. Obviously that is depending on your current css style of .post-date

Viewing 1 replies (of 1 total)
  • The topic ‘Add Space Between Date and Time’ is closed to new replies.