Problem/Motivation
The Artisan starterkit's footer has no built-in copyright notice. Site builders currently have to hardcode copyright text directly in Twig templates, which means manually updating the year every year and duplicating effort across sub-themes.
There is no way to configure pre-text (e.g. "Copyright") or post-text (e.g. a site name or "All rights reserved") without editing template files directly.
Proposed resolution
Add two new theme settings to the Artisan theme settings form:
copyright_pre_text— text displayed before the year (e.g. "© Copyright")copyright_post_text— text displayed after the year (e.g. "My Site. All rights reserved.")
The current year is resolved dynamically in the template so it never needs manual updating, the footer template then renders:
{{ copyright_pre }} [year] {{ copyright_post }}Both fields are optional. If left empty, the block renders nothing (or only the year, depending on site builder preference).
| Comment | File | Size | Author |
|---|---|---|---|
| #5 | Screenshot 2026-05-11 at 6.24.18 PM.png | 374.75 KB | sahana _n |
Issue fork artisan-3588715
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #4
sahana _n commentedI created MR. Please review.
Comment #5
sahana _n commentedComment #6
frouco commentedSome corrections have been made to adapt it to the theme's particularities. A prop was also added to the footer to display the copyright string.
Comment #8
frouco commented