New Post has been published on Victor Font Consulting Group, LLC
New Post has been published on https://victorfont.com/roman-numerals-in-copyright-genesis-framework/
Roman Numerals in Copyright: Genesis Framework
Problem
This article is in response to a question posted on the Studio Press Community Forum:
For the copyright in the footer, how can I change it to display as Roman numerals instead of the standard Arabic digits?
https://studiopress.community/topic/copyright-in-footer-displayed-as-roman-numerals/
Response
There is no native PHP function to convert integers to Roman numerals. To convert the Genesis Framework copyright shortcode output, we have to create our own function to convert the year and a shortcode to display the modified copyright text.
Solution
The best place to start is by copying the shortcode supplied by the Genesis Framework, renaming it, and modifying it to display the Roman numerals.
The source code for the Genesis Framework copyright shortcode can be found in the Genesis /lib/shortcodes/footer.php file. The copied and modified code is:
View the code on Gist.
The source for the number conversion function is:
View the code on Gist.
Finally, call the new shortcode.
View the code on Gist.
Since this new shortcode is based on the Genesis supplied shortcode, the attributes are the same. Here's the list:
copyright – Default: ©
first – Text/markup to place between the copyright symbol and the copyright date.
before – Text/markup to place before the copyright.
after – Text/markup to place after the copyright.
How to use
Insert the shortcode as shown in the code above into the footer. Here's an example that demonstrates the new shortcode's output:
Copyright © MMIII–MMXIX Victor M. Font Jr.













