Type Here to Get Search Results !

How to change automatic year in blogger

 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>



4️⃣ Now, add this where you want the year to appear (e.g., Footer)


<span id="currentYear"></span>


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!

একটি মন্তব্য পোস্ট করুন

0 মন্তব্যসমূহ
* Please Don't Spam Here. All the Comments are Reviewed by Admin.