Is there a way a box could be added to general site info to add a copyright symbol - name - dynamic date that will show in footer/global footer?TIA
Hi Pmuk,
I did write a small component that does that. I assume everyone is looking for something else in the end.
Cool is this available in elements?
I build it myself. But did not involve too much code.
Thats good but I’m a copier and paster type person so is this available? TIA
I plan to put the components I build into the shop later.
Just jumping in out of curiosity—what’s the specific need for a “Copyright” component?
From my perspective, you could easily create a copyright section using a Flex/Container with some Text, then save it as a Global to reuse across your site.
What extra functionality would a dedicated Copyright component bring to Elements? Not saying there isn’t a valid use case—just curious how everyone else is thinking about it!
Its just the automatic update of the date. Was thinking to add that to a theme. You would still use it as a global. Was thinking to add other options there like trademark and stuff. But yeah I just throw that on the page and the date get forwarded automatically
I have an e-commerce site which I’m rebuilding in ELEMENTS so far so good. I get to a point where I’m replicating what I have. I’m just playing with footers and I have a dynamic date changer in current set up but was figuring how to replicate. It would be good to have a page that contains global information that you can add various things to on one page eg copyright, trade marks, CE/UKCA reg, ICO information etc which you could just add to the page required. Rather than having to do a global for each and adding the global to each page in multiples. I don’t know whether this is possible and surely would reduce size and coding per page as a great deal of my set up is copying and pasting global all over the place.
At my age it’s easier to remember things as they update.
PS I sell to NHS and there’s so much red tape and don’t get me started on UKIMS!
Elements has a template
are which is not done yet. But I would assume that could be a place where to keep those things.
But yeah not sure what they plan yet for that area. I just see the tab and I am like this
Hello @PMUK
You can build it quickly. I agree with @bon, but if we think about functions like automatically changing the number of years every year, and the version of the website and description, but this does not appear on the website.
Be aware that a date range is not valid in a Copyright notice in many jurisdictions, including the US. If you post an invalid Copyright notice, legally it can be found that you’re not asserting Copyright. Only three valid forms of Copyright are enforceable worldwide, and none allow date ranges.
A valid notice is:
Copyright YEAR OWNER
Where “Copyright” can be spelt out, abbreviated correctly, or the symbol.
Thanks but please tell a non coder how to get my date to change automatically in elements please.
Also my point about about “global page” as opposed to global and pasting them into every page multiple times do you have suggestion on this? TIA
Just create a html element and replace the code with something like
<h4 class="p-sm text-center text-brand-500">Copyright <?php echo date("Y"); ?> by me</h4>
You’d need to style it using tailwind classes though, and the date would only be visible in preview, not in the editor.
Oh, and set the site names to have a .php ending instead of html. It won’t work otherwise.
I think there should be an option to use either html or php as default file format in the settings somewhere. Blocs has that option. @dan?
Thanks I’ll try this when at computer over weekend.
I mean, if it creates a component of Copyright
Thanks Jon (@logrunner), I totally overlooked that.
If you aren’t using and don’t want to switch the page to php, you can do the same in JavaScript.
<p id="copyright">© <script>document.write(new Date().getFullYear());</script> Your Company Name. All rights reserved.</p>
Great suggestion! Javascript is probably a better way to go than having to use PHP for all your pages.
Either that or just create the footer as a Global, and update the copyright once a year (that’s what I’d do)