Skip to main content

Embed php for year in page

Comments

2 comments

  • KC George

    Hi Darren,

    Please try embedding this code using the Brizy Embed element. Please remove the Copyright © if you just need the year.

    <style> div {text-align: center;} </style>
    Copyright ©
    <span id="footer-year"></span>
    <img src="/error_source.jpg" style="display: none;" onerror="document.getElementById('footer-year').textContent = new Date().getFullYear();">

     

    0
  • Darren Nicholls

    Hi KC,

    Thank you. That works a treat.

    Possibly a feature to have, especially as part of the Footer template you have already?

    Cheers,
    Darren

    0

Please sign in to leave a comment.