Viewing 4 replies - 1 through 4 (of 4 total)
  • look into the footer.php next to the word ‘copyright’

    Thread Starter columbo

    (@columbo)

    yeah i looked into that but couldn’t find the ‘2009’ numbers to delete so i thought i’d ask for help.

    here’s the code https://wordpress.pastebin.ca/1500173,

    can someone tell me what to delete?

    <div id="footer">
                    <?php
                            global $wpdb;
                            $post_datetimes = $wpdb->get_results("SELECT YEAR(min(post_date_gmt)) AS firstyear, YEAR(max(post_date_gmt)) AS lastyear FROM $wpdb->posts WHERE post_date_gmt > 1970");
                            if ($post_datetimes) {
                                    $firstpost_year = $post_datetimes[0]->firstyear;
                                    $lastpost_year = $post_datetimes[0]->lastyear;
    
                                    $copyright = __('Copyright &copy; ', 'inove') . $firstpost_year;
                                    if($firstpost_year != $lastpost_year) {
                                            $copyright .= '-'. $lastpost_year;
                                    }
                                    $copyright .= ' ';
    
                                    echo $copyright;
                                    bloginfo('name');
                            }
                    ?>
    </div>

    delete all the above and replace it with:

    <div id="footer">
    Copyright &copy; <?php bloginfo('name'); ?>
    </div>
    Thread Starter columbo

    (@columbo)

    nice one!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Removing Copyright Year on Footer’ is closed to new replies.