Hi! I’m trying to add the copyright year in the footer socket, and would like to add php to make the current year display dynamically. I’ve done this on other websites, but I don’t know how to add the code to the existing copyright code. Can someone please help me?
Thanks!!
Melissa
Hey melissahodge!
Please go to Appearance > Editor and open Footer.php file and find
$copyright = do_shortcode( avia_get_option('copyright', "© ".__('Copyright','avia_framework')." - <a href='".home_url('/')."'>".get_bloginfo('name')."</a>"));
and change it to
$copyright = do_shortcode( avia_get_option('copyright', "© ".__('Copyright','avia_framework')." - <a href='".home_url('/')."'>".get_bloginfo('name')."</a><span> ".date('Y')."</span>"));
Cheers!
Yigit
Thanks! That actually puts the year at the end: © Copyright – Adventure Travel Trailer Rentals 2015
How can I change the code so that the year is after the word “Copyright”?
Hi!
Please change the code to following one
$copyright = do_shortcode( avia_get_option('copyright', "© ".__('Copyright','avia_framework')." ".date('Y')." - <a href='".home_url('/')."'>".get_bloginfo('name')."</a>"));
Regards,
Yigit
Perfect! Thanks a bunch!!!! :)