Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #460286

    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

    #460305

    Hey melissahodge!

    Please go to Appearance > Editor and open Footer.php file and find

    $copyright = do_shortcode( avia_get_option('copyright', "&copy; ".__('Copyright','avia_framework')."  - <a href='".home_url('/')."'>".get_bloginfo('name')."</a>"));

    and change it to

    $copyright = do_shortcode( avia_get_option('copyright', "&copy; ".__('Copyright','avia_framework')."  - <a href='".home_url('/')."'>".get_bloginfo('name')."</a><span> ".date('Y')."</span>"));

    Cheers!
    Yigit

    #460328

    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”?

    #460335

    Hi!

    Please change the code to following one

    $copyright = do_shortcode( avia_get_option('copyright', "&copy; ".__('Copyright','avia_framework')." ".date('Y')." - <a href='".home_url('/')."'>".get_bloginfo('name')."</a>"));

    Regards,
    Yigit

    #460338

    Perfect! Thanks a bunch!!!! :)

    #460340

    Hi!

    You are welcome Melissa, we are always happy to help! :)
    Let us know if you have any other questions or issues and have a good day!

    Regards,
    Yigit

Viewing 6 posts - 1 through 6 (of 6 total)
  • The topic ‘Add dynamic copyright year in footer socket’ is closed to new replies.