• Resolved Debbie D.

    (@debbie-doglady)


    Is there any way to remove just the time portion showing at the top of all posts? It looks like using CSS, the only options are to either show date and time together or “none”. I would like to keep the date. Thanks in advance.
    Debbie @ The Doglady’s Den

Viewing 5 replies - 1 through 5 (of 5 total)
  • Hi Debbie

    Indeed, there is a way:
    go to Appearance, then to Editor and select loop.php

    then, go to this pastie

    and click on that little notepad icon to the right which says Raw

    Then select all that text and replace it with your text inside of that loop.php file.

    Then save by clicking on Update file, and that’s it.

    Thread Starter Debbie D.

    (@debbie-doglady)

    Thank you, ameo02. That worked great, but only on the home page. This should work also for the loop.single.php file, yes? Trouble is, I don’t know what exactly to change in order to remove the time. Would you mind working your magic again? Sorry, but I’m not that savvy about coding. Thanks again!

    Thread Starter Debbie D.

    (@debbie-doglady)

    The loop.single.php was almost the same, so I found and removed the code pertaining to the time. Thanks again, ameo02. Problem solved!

    Moderator Kathryn Presner

    (@zoonini)

    ameo02 – thanks for giving that code tweak to Debbie!

    Debbie, please be aware that by editing your theme file within the editor, your changes will be erased the next time you update the theme.

    The best way to make changes to a theme is to use a child theme, so your tweaks won’t be overwritten when updating the theme. Here are some guides in case you haven’t made one before:

    https://codex.www.ads-software.com/Child_Themes
    https://op111.net/53/
    https://vimeo.com/39023468

    I’d strongly suggest making your theme file tweaks in a child theme so they’ll be preserved through future theme updates – it’ll be much less frustrating and save you from having to remember and redo your changes every time. ??

    Thread Starter Debbie D.

    (@debbie-doglady)

    Thanks for the info, Kathryn. I’ve never tweaked any php files until now, so this is a good to know!

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Show dates but remove time’ is closed to new replies.