• For footer credits in my bottom bar, I would like the year to update automatically. So, “Copyright my name 20XX”.

    Elsewhere on the site, I have successfully used this html:
    <b><p style="color:white;font-size:bold;"">Copyright ? <script>document.write(new Date().getFullYear())</script> My Name</p></b>

    However, if I put this code into the footer credits section of the bottom bar customiser (Theme customiser>footer>bottom bar>edit footer credits), the code does not work.

    Is there a simple way to make it work without using a plugin – or not?

    I’m using Divi theme, but I believe this is a WordPress feature.

    Many thanks!

    • This topic was modified 2 years, 4 months ago by Jan Dembowski. Reason: Moved to Fixing WordPress, this is not an Developing with WordPress topic
Viewing 2 replies - 1 through 2 (of 2 total)
  • The footer and its content are from your theme, not WordPress.

    It’s possible the theme’s footer Customizer field may not accept HTML, but we have no way of knowing this… as Divi is a commercial theme so we’re unable to install it to test.

    Please contact your Divi theme’s vendor for help with this. They built and sold the theme, and should be in the best position to help you.

    Divi theme support page: https://www.elegantthemes.com/contact/

    Good luck!

    Thread Starter LittleBlogger

    (@littleblogger)

    Hi George – thank you for your swift reply.

    I’ve been using WordPress/Divi for so long, it’s difficult to know where one ends and the other begins.

    I will get in touch with Elegant Themes.

    Thanks again!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Html in bottom bar (add date automatically)’ is closed to new replies.