Get 20% Off On All Our Premium WordPress Themes Bundle. Use GRACEBFCM Coupon Code For Discount Deal Upto Dec 15 Buy Now

Automatic copyright date

Home Support Business Growth WordPress Theme Automatic copyright date

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #8116
    Allan
    Participant

    I tried putting Javascript code, PHP code and a shortcode into the Copyright info box on the theme options page and can not get it to generate the copyright date automatically. Is there a specific way I should be doing this?

    In other words, I am trying to fix it so that I do not have to update my copyright year every year.

    #8121
    Grace Themes
    Member

    Hi

    To automatically update the copyright year, just follow the below steps

    1. Go to Appearance -> Editor -> footer.php
    at line no. 189 you will find the code

    <div class="copyright-txt"><?php if( of_get_option('copytext',true) != ''){ echo of_get_option('copytext',true); }; ?></div>

    Now just replace this code with below code

    <div class="copyright-txt">&copy; <?php echo date('Y'); ?> <?php if( of_get_option('copytext',true) != ''){ echo of_get_option('copytext',true); }; ?></div>

    2. Remove ‘© 2016’ from footer copyright section.

    Regards
    Grace Themes

    • This reply was modified 2 years, 8 months ago by Grace Themes.
Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.