WordPress.org

Ready to get started?Download WordPress

Forums

nano blogger
[resolved] Remove date and time stamp (2 posts)

  1. macadali
    Member
    Posted 1 year ago #

    Hi - great looking theme. Can you please show me the code to remove (and from where) so that the date stamp is removed from posts on all pages.

    Many thanks

  2. Mayeenul Islam
    Member
    Theme Author

    Posted 1 year ago #

    To remove datestamp, find <span class="entry-date"> in:
    single.php,
    page.php,
    archive.php,
    attachment.php,
    author.php,
    blog-template.php,
    category.php,
    index.php,
    search.php, and
    tag.php

    So you will get the code for date & time with a default permalink to the post. In those:
    <?php the_time( get_option( 'date_format' ) ); ?>
    shows the date.

    You can delete the entire <span class="entry-date"></span> to remove the date.

    But
    WARNING: The date contains the default permalink to a post. If you have any post without title, your user won't get to the post-details without the link.

Topic Closed

This topic has been closed to new replies.

About this Theme

About this Topic

Tags

No tags yet.