@Richard
Finally fixed the Code:
Here is the working JS:
<script> window.laytheme.on("newpageshown", function(layoutObj, type, obj){ if(type == "page" && obj.id == 19,36){ var today = new Date(); var month = (today.getMonth()+1+"").padStart(2,'0') var year = today.getFullYear(); var date = month+'/—/'+year var element = jQuery('a#year'); element.html(date); } }); </script>CSS:
#year { width: 100%; height: auto; }and HTML:
<a id="year" class="_Default" href="https://michaelplessl.com/index/"></a>Hope this should help someone in the right direction. :P
Best,
Fabi