• Skip to main content
  • Skip to primary sidebar

Victor Font Consulting Group, LLC

The DEX Intranet Specialists

  • Home
  • Care Plans
    • Care Articles
    • Optional Subscriptions
  • Consultations
  • Products
    • Code Snippets
    • Public GitHub Repositories
    • Gist Snippets
    • Pastebin Snippets (Free)
    • Free Plugins
  • FAQs
  • Support
    • Graphic Design
  • Contact
    • Speakers
    • Portfolio
  • Resources
    • Free WordPress Video Training
    • Tutorials
    • Articles
    • Cybersecurity
    • EU Referral Network

Roman Numerals in Copyright: Genesis Framework

August 23, 2019 By Victor M. Font Jr.

Roman numbers board, Image from Pixabay

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:

The source for the number conversion function is:

Finally, call the new shortcode.

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–MMXXVI Victor M. Font Jr.
  • 56shares
  • Facebook52
  • Twitter0
  • Pinterest2
  • LinkedIn1
  • Print
  • SMS1

Filed Under: Genesis, How To Tagged With: copyright, Genesis, How To, roman numerals, Studio Press

About Victor M. Font Jr.

Victor M. Font Jr. is an award winning author, entrepreneur, and Senior IT Executive. A Founding Board Member of the North Carolina Executive Roundtable, he has served on the Board of Advisors, of the North Carolina Technology Association, the International Institute of Business Analysis, Association of Information Technology Professionals, Toastmasters International, and the North Carolina Commission for Mental Health, Developmental Disabilities, and Substance Abuse Services. He is author of several books including The Ultimate Guide to the SDLC and Winning With WordPress Basics, and Cybersecurity.

Primary Sidebar

Shopping Cart

Books

  • Ultimate Guide to the SDLC front cover The Ultimate Guide to the SDLC
    Rated 5.00 out of 5
    $74.95
  • Winning With WordPress Basics 2nd Edition Winning With WordPress Basics 2nd Edition $19.95

Recent Articles

  • Modern Scam Defense: How Consumers and Businesses Can Recognize and Stop Email, Phone, and Text Fraud
  • How to Write a PRD So Dense It’s Technically a Novel
  • Top 5 Plugin Names That Scare Our Legal Department
  • When Agile Meets Our 3-Year Waterfall Roadmap: A Love Story
  • Why Our Enterprise Needs 27 Stakeholders to Approve a Button Color Change

Top 10 Article Categories

Best Practice Code Snippet Computers and Internet Genesis How To Leadership Programming Servant Leadership Tutorial WordPress

 
We only use analytical cookies on our website that allow us to recognize and count the number of visitors, but they do not identify you individually. They help us to improve the way our website works. By clicking Accept you, agree to cookies being used in accordance with our Cookie Policy.