Understrap: How to remove "date updated" on posts

Created on 17 Sep 2018  路  4Comments  路  Source: understrap/understrap

Issue is about..

  • [ ] I need help

Issue Overview for Bugreports

Screenshots / Video

image

Expected behavior

Only the published one date must be shown

Other Comments

Apperantly the understrap_posted_on() function controls the date posted / updated notices, but is there a way to make it only show the published date instead of published and updated date like it is now? A way that doesn't involve CSS. Thanks so much

Most helpful comment

Hi!
You can find the function itself in inc/template-tags.php.
It starts from line 17:
https://github.com/understrap/understrap/blob/master/inc/template-tags.php#L17
The end of Line 21 includes the markup for the "updatwd" time:

Trim this or remove it.

If you use a child theme (recommended): Copy the whole function from L18-38 to the child themes function.php. And than do the changes.

All 4 comments

Hi!
You can find the function itself in inc/template-tags.php.
It starts from line 17:
https://github.com/understrap/understrap/blob/master/inc/template-tags.php#L17
The end of Line 21 includes the markup for the "updatwd" time:

Trim this or remove it.

If you use a child theme (recommended): Copy the whole function from L18-38 to the child themes function.php. And than do the changes.

@Stefany93 I had the same issue. Once (if) my PR #813 is merged into the master, you can use a filter to achieve that.

@holger1411 Thanks so much yes I have a child theme will try that.

@IanDelMar Thanks for making a PR and adding the filter option, hopefully it gets approved soon!

Thx @Stefany93 and @IanDelMar (for bringing up this issue and fixing it) !
Closing this

Was this page helpful?
0 / 5 - 0 ratings

Related issues

tim-field picture tim-field  路  4Comments

kmob2 picture kmob2  路  4Comments

holger1411 picture holger1411  路  5Comments

jsgaonac picture jsgaonac  路  5Comments

shansmith01 picture shansmith01  路  5Comments