ucsc / ucsc-2022

Official WordPress theme for UC Santa Cruz
6 stars 0 forks source link

Last Modified Date #160

Closed teresasilva71 closed 5 months ago

teresasilva71 commented 1 year ago

From Becca: "One of the useful features on ucsc.edu and other sites is the "Last modified date" in the footer.
How can a "Last Modified date" be added to the footers in Campus Wordpress?
I tried to see if there was some shortcode or another way - a lot of the items online are plugins for Wordpress."

Herm71 commented 1 year ago

We had this in an early version but were requested to take it out. It can be re-added if that's the desire.

kanarb commented 1 year ago

Thanks Jason. Yes, please add this back to the footer.

knice commented 1 year ago

Here is the last commit where we had it working as we wanted it.

knice commented 1 year ago

screenshot-2022-12-01-133821

screenshot-2022-12-01-133919

Herm71 commented 1 year ago

@knice, in the Last modified: paragraph sidebar settings, under Dimensions>Margin>Top what units are you using for the "1" px, em, rem?

Herm71 commented 1 year ago

@knice Nevermind, I figured it out

knice commented 1 year ago

Should be 1rem?

Herm71 commented 1 year ago

@knice I'm preparing to push this up and issue a PR but before I do, here are some screenshots of my environment for comparison's sake. (BTW, the reason the shortcode worked when we tested it in your local-dev is because we moved it to the custom functionality plugin. No additional work is needed there.)

Editor settings: last-modified-editor

Front-end: last-modified-front

knice commented 1 year ago

That looks good. We might need to adjust the font-weight, but let's go with that you have there for now. 👍

knice commented 7 months ago

@Herm71 possible to add this after the global footer, so it looks similar to the way we had it configured here?

We add the global footer in functions.php. Maybe we can add the global footer, and then add another horizontal row with blue background (so it looks like it comes with the global footer) that contains the shortcode for last-modifed?

Herm71 commented 6 months ago

Here's what it looks like so far:

Desktop: lm-desktop

Mobile: lm-mobile