• I have the pen and pen-child themes installed. I’m wondering if, in addition to the POSTED ON date, it is possible to include code to display the UPDATED ON date.

    The page I need help with: [log in to see the link]

Viewing 7 replies - 1 through 7 (of 7 total)
  • Theme Author htmlpie

    (@htmlpie)

    Hi there,

    Absolutely, try this CSS:

    #main .posted-on time.updated {
    	display: inline-block !important;
    	margin-left: 0.5rem;
    }

    It can be added through Appearance -> Customize -> Additional CSS.

    Hope it helps!

    PS: I think we can add this to the new update.

    Thread Starter Basil Hendroff

    (@basilh)

    Hope it helps!

    @htmlpie It’s certainly heading in the right direction. Adding the CSS turns this…
    POSTED ON 14 SEPTEMBER 2020 \ BY BASIL \ FREENAS, PLEX

    …into this…

    POSTED ON 14 SEPTEMBER 2020 15 SEPTEMBER 2020 \ BY BASIL \ FREENAS, PLEX

    I was hoping to have it formated this way…

    POSTED ON 14 SEPTEMBER 2020 \ UPDATED ON 15 SEPTEMBER 2020 \ BY BASIL \ FREENAS, PLEX

    … but I suspect this is a more complex endeavour. I tried searching for the words POSTED ON in the PEN theme files, but came up with nada. I did find the word posted in the following files:

    1. assets/css/pen-content.css
    2. assets/css/pen-base.css
    3. assets/css/plugins/wp.woocommerce.css
    4. include/html.php

      html.php looked the most promising. I suspect I need to copy and modify a function from this file to the PEN-CHILD functions.php, but TL;DR.

      PS: I think we can add this to the new update.

      Yes, please! The PEN theme is my absolute favourite theme. Because it’s SO configurable, I’ve got a lot of control over how the theme looks. What would make it just perfect is the inclusion of the UPDATED ON field.

    Theme Author htmlpie

    (@htmlpie)

    Sure!

    In the meantime, you can add this to that CSS:

    #main .posted-on time.updated:not(.published):before {
    	content: " Updated: ";	
    }
    Thread Starter Basil Hendroff

    (@basilh)

    The workaround is brilliant! I would never have figured that out on my own. I would love to see this assimilated as an option in the next version of the PEN theme.

    Theme Author htmlpie

    (@htmlpie)

    Hi there,

    We have added this feature! It is under Appearance -> Customize -> Content -> Full Content View -> Content Date: Updated.

    Thread Starter Basil Hendroff

    (@basilh)

    Totally awesome! Love it! So much nicer!!!!

    Theme Author htmlpie

    (@htmlpie)

    Great!

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘UPDATED ON date’ is closed to new replies.