The Dynamic Year Block will automatically update the copyright year in your website footer. At the turn of each year, the number will automatically change to reflect the current year, freeing you from manually editing the year every new year’s eve.
The plugin works for both classic and block themes, but it is especially useful in the context of the Site Editor, where you can visually change the footer template part without messing with code. Just insert the Dynamic Year Block into your copyright notice and you’re done. 💪
⚠️ Important: please configure your timezone in “Settings → General → Timezone” in your WordPress dashboard, so that the year displayed by the block matches your server time and the timezone set in WordPress.
Deze plugin heeft 1 blok.
- Dynamic Year A block that always displays the current year.
- Open any post or page in your WordPress.
- Click the main plus icon (+), located at the upper left corner of the editor, to add a new block.
- Type “Dynamic Year Block” in the search field.
- Look for the plugin with this name in the list of available block plugins and click to install.
- Wait for the installation process and the block will be available to use in your content. You can deactivate it in the “Plugins → All plugins” menu, in your WordPress admin dashboard.
- Upload the dynamic-year-block.zip file via the plugin page of WordPress by clicking “Add New” and selecting the zip from your local computer, or alternatively upload the decompressed
dynamic-year-blockfolder to your
/wp-content/plugins/directory on your server, via SFTP/FTP.
- Activate the plugin through the “Plugins” menu in WordPress.
- Search for the “Dynamic Year” block in any block inserter within the block editor.
- Optionally, customize the year format in the sidebar of the block editor. The plugin does not create menus or additional settings in the WordPress dashboard.
Why would I need this?
This eliminates the need to manually edit the year of your website’s copyright statement, usually located at the bottom of each page.
What is the recommended way to use it?
It is recommended to insert it in the footer template part of your block theme, but it can be used anywhere in your content.
Also, you will probably want to use it within a Row block to make it appear horizontally with other text elements, as demonstrated in the fourth screenshot above.
Will this plugin hinder my website loading performance?
Does this plugin collect any data from me or my users?
Absolutely not, the plugin respects your privacy. It’s completely add-free and the code only uses core WordPress functions.
Does this plugin work in the Classic Editor?
No, this plugin works exclusively in the Block Editor.
The plugin uses a WordPress core function (
current_datetime) to get your server time, using the timezone specified in the “Settings → General → Timezone” on your WordPress dashboard. So it is important to set your timezone in order to display the year correctly, especially at the turn of the year.
Where can I send feedback or support questions?
Please reach out via the official plugin support forum.
Feel free to ask questions, request new features or report bugs.
You can also follow the development of the plugin in the official Épico Studio GitHub repository, where you can see the complete code.
How can I support the development of the Dynamic Year Block?
Er zijn geen beoordelingen voor deze plugin.
Bijdragers & ontwikkelaars
“Dynamic Year Block” is open source software. De volgende personen hebben bijgedragen aan deze plugin.Bijdragers
- Adding missing translation strings.
- Updating the code for WordPress version 6.1
- Initial release