• I see how to change the actual format of the date, but how can I actually change the look and feel of how it is displayed? I’d like it to be more prominant near the top on the left or right hand side. Is this something that needs to be edited in the CSS file or in one of the php files?

    http://www.jasonyormark.com

Viewing 10 replies - 1 through 10 (of 10 total)
  • You’ll need to edit the index.php directly to move the date, and then use CSS to alter the styling.
    Take it out from where it is (in the meta div ?) and experiment a bit ?

    Thread Starter Jason Yormark

    (@jry1209)

    Better yet, how can I use the date format used on this template on my site:

    http://www.alexking.org/software/wordpress/themes/blog/

    Love that look, but trying to figure out how to implement it into my design:

    http://www.jasonyormark.com

    <?php if (have_posts()) : while (have_posts()) : the_post(); ?>

    <?php the_date('','<h2>','</h2>'); ?>

    <div class="post">
    <h3 class="storytitle" id="post-<?php the_ID(); ?>"><a href="<?php the_permalink() ?>" rel="bookmark"><?php the_title(); ?></a></h3>

    And the line that starts <div class="meta"> do whatever you want with ?

    Your css will need changing, but the above is a start.
    (The above is straight from the Classic template)

    Thread Starter Jason Yormark

    (@jry1209)

    Where would this snippet of code be placed and in place of what?

    Also, what parameters would need to be changed in the CSS? Sorry, a little familiar with this stuff, but still new.

    Edit your index.php, and you should see a line that says div class="post"> and what I have put above goes around that. You will need to remove what is there so the duplication does not occur.

    Take a few minutes just to compare the files and you’ll see – it may be helpful to copy/paste things into Notepad.

    Once it’s in index, and is roughly where you want it to be, pop back and we’ll sort the CSS. It’s better to tackle one issue at a time πŸ™‚

    If you get stuck, post your index.php to this location:
    http://paste.uni.cc and then post the URL it gives you back here. We can then see and edit your code if you get too confused by it all.

    Thread Starter Jason Yormark

    (@jry1209)

    http://paste.uni.cc/6835

    Think my code is a bit different so let’s try this. Thanks for the assistance.

    < !--
    <h2 class="entrydate"><?php the_date() ?></h2>
    -->

    See those two lines –> ? Delete theme and your date will pop into view.

    Thread Starter Jason Yormark

    (@jry1209)

    Hmmm…I’m not having a problem with the date showing, just changing the format of it. I deleted the code you just showed me, but it didn’t change anything. Perhaps I misread what you meant to do.

    ifelse

    (@ifelse)

    If you remove just the two lines which Podz mentioned, i.e.
    <!--
    and
    -->
    (Those are HTML comments which ‘comment out’ everything in between them.) You should then see the date appearing above the posts. It should look something like this

    BTW, and slightly OT, but that’s an useful page which Podz provided. I didn’t know about that one.

    Thread Starter Jason Yormark

    (@jry1209)

    ah, got it…thanks for the assistance

Viewing 10 replies - 1 through 10 (of 10 total)

The topic ‘Changing the date format’ is closed to new replies.