To display the automatic year in the Blogger footer (or anywhere else), follow these steps:
Method 1: Using JavaScript (Recommended)
1️⃣ Go to Blogger Dashboard → Theme → Edit HTML
2️⃣ Find </body>
(Press CTRL + F and search for </body>
)
3️⃣ Paste this JavaScript code just before </body>
<script>
document.addEventListener("DOMContentLoaded", function() {
var yearSpan = document.getElementById("currentYear");
if (yearSpan) {
yearSpan.textContent = new Date().getFullYear();
}
});
</script>
Method 2: Using Blogger Widgets (For Footer)
1️⃣ Go to Blogger Dashboard → Layout
2️⃣ Click “Add a Gadget” → Choose “HTML/JavaScript”
3️⃣ Paste this code inside the widget:
© <span id="currentYear"></span> APK SURE. All rights reserved.
<script>
document.getElementById("currentYear").innerHTML = new Date().getFullYear();
</script>
4️⃣ Save the widget and place it in the footer.
Now, your year will update automatically every year without manual changes!