Support » Themes and Templates » How to remove the date, time and edit links from posts.

  • Resolved awuku

    (@awuku)


    Hello,

    I am completley new to word press.
    I wonder if anyone can help me. I am building [url deleted] using the ZenLite theme. I wonderd if anyone knew how to remove the time, date, and edit features from posts/pages??

    Thank you
    Natasha

Viewing 5 replies - 1 through 5 (of 5 total)
  • Edit loop.php & single.php and remove:

    <ul class="meta">
    <li><?php the_time('F j, Y'); ?> <?php the_time(); ?></li>
    <li><?php edit_post_link(__('Edit', 'zenlite') ); ?></li>
    </ul>

    Then edit page.php & page-without-comments.php and remove:

    <ul class="meta">
    <li><?php edit_post_link(__('Edit', 'zenlite') ); ?></li>
    </ul>

    I think that should remove all references to date/time as well as the edit links (which are only displayed to certain users when they are logged into the site).

    If you need any more help with ZenLite, there’s a dedicated forum that you can use that’s a little bit quieter than here.

    Thread Starter awuku

    (@awuku)

    Hello Esmi,

    I followed your advice and it works! I’ll aslo check out the other forum you suggested too.

    Thank you so much for your help.

    Natasha

    No problem. I think I’ve just answered one of your posts on the quirm.net form. Because this forum is so busy, I can miss posts that relate to my themes whilst I check the other, much smaller, forum at least once a day.

    Hi,

    This is like the noobiest question ever, but I’m extremely ignorant. I just started putting together a site wordpress.natalianaman.com using the Day Dream theme and I’d like to do exactly what Natasha did above. I just don’t know how to get to these .php templates. Please advise?

    Thanks so much,
    Natalia

    I was able to give Awuku precise details of what to change and where because I created the ZenLite theme that she is using. I’m not the author of the Day Dream theme so all I can suggest is that you start by looking in Appearance/Edit for your template files.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘How to remove the date, time and edit links from posts.’ is closed to new replies.