Footer credits, years


In Sydney Pro, I would like to add in footer credits, dynamically change of year.
It suppose to looks like 2013 - “dynamic change for current year”

Is it possible and how to do it!?
Thank you in advance.


Hi Sasa,

Thank you for contacting us. I am happy to help with your queries.

First of all, try adding this snippet to your child theme’s functions.

    add_action( 'wp_enqueue_scripts', 'sydney_pro_the_site_info', 9999 );
    function sydney_pro_the_site_info() {

      $site_info = array(
        'year' => date('Y'),

      wp_localize_script( 'sydney-scripts', 'site_info', $site_info );


Or, if you aren’t running a child theme, insert it with the Code Snippets plugin.

Then do these steps:

  1. Install and activate the TC Custom JavaScript plugin
  2. Go To Appearance > Custom JavaScript
  3. Paste the following code into the provided box
    ;(function($) {

     if( $('.site-footer .site-info').length ) {

       $('.site-footer .site-info').html(function(index,html){
         return html.replaceAll('/%year%/g', site_info.year);


  1. Update
  2. Clear any active cache on both your site and web browser.

I’d request giving it a try and let me know your views.

aThemes Support