-
Notifications
You must be signed in to change notification settings - Fork 4.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add Block: Copyright #18895
Comments
I like to add an automatic link to the privacy policy in my theme footers too. |
100% this, based on the privacy policy WP page. |
Initially, I thought this could be based largely on the Paragraph block. The block settings would include an option for the theme's author as a toggle which appends that text to whatever text the user wrote in the block. Block Block Settings But after some thinking about this, what if made this a "License block"? And people can change between "Copyright" or "Creative Commons" or "GPL", whatever license we wanted to include. Do you think this makes sense? Basically, when switching to a new license, the license icon swaps out to show one of the other lisence icons like Block Block Settings |
@mapk In that second mockup, I think "License type" should not be in the inspector. I consider it to be a primary option of the block, and therefore it should be either in the toolbar or an inline control shown within the block's edit canvas. It should also be noted that you would probably use the standard copyright symbol regardless of what license you are using. |
I like the idea about the licence, I wonder though if it should be an option at the point of placeholder or something to switch. I can see a step for example of 'choose license' and it would create. I kind of agree it doesn't fit as well in the sidebar, but I more think it's a first step over having in toolbar. I do love a block that doesn't need sidebar options, they are simple and easier for people. |
Really great feedback! Thank you. I wonder if we should start with a set of licenses we'd like to expose in this block?
I'm not sure how well GPL aligns with just web content. Same question for other licenses like MIT and Apache. Should we include those options? Are there others I haven't included? |
In addition to the ability to add a license, it'll be super useful if the block auto updated the year as time passes. |
Not sure if a new block is needed for this, but something that can help a lot is a core shortcode that displays the current year. Many themes has a similar solution to keep the copyright updated, so it may be good to feature it in core, too. |
@peroyomas There's already a proposal for creating a sort of shortcodes v2 – or dynamic tokens – for use cases like this one. |
Hey I happen to create a duplicate: #47522 |
I will bring over a few comments to this issue from the newer issue that I made. #47522 Michelle has made a Copyright year block located here: https://github.com/marktimemedia/copyright-year-block Block settings contains Typography and Dimensions panels. It does not currently contain the split between Styles and Settings seen in example the Post Title block One can click directly into the "My Site Name. All Rights Reserved." and change the text. It would be great to do something very similar for a Copyright block added to Gutenberg. Looking at other Copyright plugins. @mkaz Marcus has made this Copyright and Date block. No changes can be made as I see. There are no sidebar settings. Insert the block and the text "Copyright © 2023" will be seen. @pbearne Paul has made this Copyright block. One can click directly into the "© 2023 Copyright Statement." and change Copyright Statement text. EDIT: One can edit the Prefix (Copyright symbol) and the Suffix (Name of Organization). Looking at the earlier above comments...@melchoyce mentions outputting the site title, ©, and the year. Additionally the author credit. A version 1 would really work on adding something very similar to Michelle's plugin mentioned and seen just above in my comment. Are we on a good to go with getting a developer to create version 1? |
I still don't understand why we need this block. |
We don't need it, but it's certainly a "nice to have". At least 2 of the sample blocks that were mentioned in @paaljoachim 's (now closed) ticket are dynamic blocks (including mine): where the year(s) displayed are dynamic, so that a site admin doesn't have to edit the footer template on Jan 1 every year. In classic themes, I've always included a shortcode to accomplish that dynamic behavior...so it'd be nice to have a core block for block-based themes. If others decide it's not needed in core, that's fine...I'll just continue to use the block I created ;-) |
I agree that we need some strings that are dynamic... But I'd prefer to have a mechanism to inject dynamic strings in content - in lieu of custom blocks. I have some ideas on that topic, as soon as we're finished with the WP 6.2 release I plan to make a POC and a suggestion for Gutenberg to include them 👍 |
As I said before, I think that an option of insert an inline text token that always displays the CURRENT YEAR is the minimum to have. |
Has there been any movement on this? Since it's the new year this is top of mind as we just manually updated several site's copyright year. I know there are several plugins that introduce a year block, but I'd love either a core block or dynamic string method. |
The recently published "Bits" proposal is a potential alternative to dynamically display the current year: https://make.wordpress.org/core/2024/06/08/proposal-bits-as-dynamic-tokens/ |
This block would be useful for themes to use once we have Full-site editing, and would automatically output the site title, ©, and the year. Additionally, it would be good if themes could somehow hook into it to add an author credit. Like:
The text was updated successfully, but these errors were encountered: