Current Year

Current Year

This tool automatically displays the current year on your website and updates it dynamically. Perfect for copyright notices, footer information, or any content that needs to stay current. Customize the display format with prefixes, suffixes, or custom templates. The year updates automatically without requiring manual maintenance, ensuring your website always shows the correct year.
Share this feature
Current Year
1

Add the script

Add this script in page settings > Custom code > Before the closing </body> tag

<!-- BeBranded Contents -->
<script async src="https://cdn.jsdelivr.net/npm/@bebranded/bb-contents@1/bb-contents.js"></script>
2

Main attribute

Enable the module

bb-current-year attribute
bb-current-year = " "

Add the bb-current-year attribute to the element where you want to display the year.

Add this attribute:
Name
bb-current-year
Value
NOTE
The bb-current-year attribute can be empty. Simply adding it to the element will enable the module.
Optional

Custom format

Custom format

bb-current-year-format attribute
bb-current-year-format = "© {year} My Company"

Use bb-current-year-format to customize the year display with the {year} placeholder.

Add this attribute:
Name
bb-current-year-format
Value
© {year} My Company
NOTE
The {year} placeholder will be replaced by the current year. Example: "© 2025 My Company"
Optional

Prefix and suffix

Prefix and suffix

bb-current-year-prefix and bb-current-year-suffix attributes
bb-current-year-prefix = "© "

Alternatively, you can use bb-current-year-prefix and bb-current-year-suffix to add text before and after the year.

Add this attribute:
Name
bb-current-year-prefix
Value
©
NOTE
Prefix: "© " + Suffix: " - All rights reserved" will give "© 2025 - All rights reserved"
1

2

Still need help?