Forums

[resolved] Viewing the date when making a post (5 posts)

  1. ilona__divinity
    Member
    Posted 2 years ago #

    Does anyone know how to get rid of the date appearing on the page when I make a post/page?

    I have quickly put up a post (as the homepage) But it shows the date - I don't want this as it isn't being used for a blog but an information site - with the pages being updated if anything, not dated updates.

    I don't want the date showing but not sure what to get rid of to disable this.

    Cheers for any advice :)

  2. syncbox
    Member
    Posted 2 years ago #

    You mention page here, but I suspect you mean the date for the POST...

    If you look in the file being used -- index.php or category.php, depending upon how you are getting to it - you can comment out the part calling the date by placing // in front of //the_time or by wrapping the entire line with php comments

    <?php /*?>commented out stuff here<?php */?>

    This is the bit that adds the time and author in the default theme... if you are using a custom theme, it could look different than this, but look for these functions.

    <small><?php the_time('F jS, Y') ?> <!-- by <?php the_author() ?> --></small>

  3. ilona__divinity
    Member
    Posted 2 years ago #

    Yes I did mean post lol, I have used a post under a category for the home page - and your advice worked a treat! It has disappeared :)

    I just added // infront of the_time

    Thank you very much.

  4. syncbox
    Member
    Posted 2 years ago #

    you are welcome! BTW, please mark your post here as resolved.

  5. ilona__divinity
    Member
    Posted 2 years ago #

    Haha cheers again, I had noticed that before but wasn't sure how to do it - just found out. Cheers!

Topic Closed

This topic has been closed to new replies.

About this Topic