@gojero Thanks for sharing that function!
To use that in a block theme with site editing, you’d only need to put the shortcode in a shortcode block in your footer template part.
@baxter89 You don’t need a child theme if all you’re doing is adding custom functions to a theme. You can use a functionality plugin instead – either by creating your own, or using a premade one like this one:
https://www.ads-software.com/plugins/code-snippets/
If you prefer to make a child theme, I’d suggest using the Create Block Theme plugin, selecting the child theme option:
https://www.ads-software.com/plugins/create-block-theme/
There are other ways to render a PHP date function by adding code directly to your footer template (in a child theme), but it’s a little more complicated with a block theme, since templates are HTML files and not PHP. If you’re interested in exploring that avenue, check out this guide to rendering PHP in site editing templates.