Forums

[resolved] How to remove the date, time and edit links from posts. (6 posts)

  1. Awuku
    Member
    Posted 1 year ago #

    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

  2. esmi
    Theme Diva & Forum Moderator
    Posted 1 year ago #

    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.

  3. Awuku
    Member
    Posted 1 year ago #

    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

  4. esmi
    Theme Diva & Forum Moderator
    Posted 1 year ago #

    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.

  5. natalianaman
    Member
    Posted 1 year ago #

    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

  6. esmi
    Theme Diva & Forum Moderator
    Posted 1 year ago #

    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.

Topic Closed

This topic has been closed to new replies.

About this Topic