How to Display the Current Year in Your Custom Footer
Published on August 14, 2024
Published on Wealthy Affiliate — a platform for building real online businesses with modern training and AI.
It's time for your daily dose of Wordpress Wisdom! In a previous tutorial I showed you how to remove the "Built with Generate Press" text that is displayed in your footer in the free version of Generate Press. (You can check out that tutorial here.) BUT in that tutorial the final result ended up removing the current copyright year from the footer, so let's UPDATE that code with a brand new code that not only removes the "Built with Generate Press" text but leaves the current copyright year displayed. I'll show you how!
Here is the php code you can copy and paste into the WP Code plugin as shown in the video:
add_filter( 'generate_copyright','tu_custom_copyright' );
function tu_custom_copyright() {
Ready to put this into action?
Start your free journey today — no credit card required.
?>
© <script type="text/javascript">document. write(new Date(). getFullYear());</script> Type in any text you like in this space.
<?php
}
As always, feel free to share this video to anyone needing help with this. If you have any Wordpress related questions that you'd like to see me create a tutorial for send me a private message or leave me a message on my profile.
If you want to check out all my Wordpress Wisdom tutorials feel free to head over to my blog.
Be productive!
Get your hands dirty!
Create that content!
Become the master of Wordpress you know you can be!
Share this insight
This conversation is happening inside the community.
Join free to continue it.The Internet Changed. Now It Is Time to Build Differently.
If this article resonated, the next step is learning how to apply it. Inside Wealthy Affiliate, we break this down into practical steps you can use to build a real online business.
No credit card. Instant access.