• Hi there,

    Is there a way to remove the date from both the posts pages and the images on teh gallery (when you hover over them)?

    Thanks,

    Johleen

Viewing 5 replies - 1 through 5 (of 5 total)
  • I needed to do this too, I’ve just done it by removing certain lines in the editor.

    <p class=”archive-post-date”><?php the_time(get_option(‘date_format’)); ?></p>
    from the content template

    The line starting <p class=”post-date”>
    from the single post template

    That should do it but i worked it out in a rush and didn’t take any proper notes or code snippets. Hope that helps.

    Thread Starter johleen

    (@johleen)

    Hi,

    Thanks for this. I also found a work around to deal with it. I added some css which made all the dates transparent so you can’t see them!

    Best wishes.

    You can also remove
    <p class="post-date"><?php the_time(get_option('date_format')); ?></p>
    From single.php

    how about removing ALL the dates from the blog, not only the posts
    even though my theme is different….(Tempera)

    I removed:

    <p class=”post-date”><?php the_time(get_option(‘date_format’)); ?></p>

    from single.php and I still see the post dates on the home page.
    https://netvalu.net/photography/

    Can you point me to what am I missing?
    Ideally I could replace the date with an image count, as I posted on a separate forum topic. And idea how?

    Thanks,
    Yuval

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Remove the dates’ is closed to new replies.