Skip to content

Instantly share code, notes, and snippets.

@jamiemarsland
Created February 18, 2015 06:11
Show Gist options
  • Save jamiemarsland/5e618baeda2dd5199d4a to your computer and use it in GitHub Desktop.
Save jamiemarsland/5e618baeda2dd5199d4a to your computer and use it in GitHub Desktop.
Remove WooThemes credit in Storefront footer
add_action( 'init', 'custom_remove_footer_credit', 10 );
function custom_remove_footer_credit () {
remove_action( 'storefront_footer', 'storefront_credit', 20 );
add_action( 'storefront_footer', 'custom_storefront_credit', 20 );
}
function custom_storefront_credit() {
?>
<div class="site-info">
&copy; <?php echo get_bloginfo( 'name' ) . ' ' . get_the_date( 'Y' ); ?>
</div><!-- .site-info -->
<?php
}
@airfires
Copy link

airfires commented Aug 9, 2016

Great

@joeabill
Copy link

Thanks for the gist! I created a WordPress plugin that makes it so you don't have to make any code modifications here.

@asterion
Copy link

gracias

@trueqap
Copy link

trueqap commented Oct 19, 2017

Working well, thanks

@KrisPearson
Copy link

Cheers!

@ara303
Copy link

ara303 commented Mar 8, 2018

Just thought I'd drop in to give you thanks (sorry for any unnecessary email notifications!). This helped me out!

@lcenine
Copy link

lcenine commented Sep 20, 2018

Another person just wanting to say thank you!

@Vusys
Copy link

Vusys commented Oct 8, 2018

You don't need to remove the action and add your own. There's a filter for this:

add_filter('storefront_credit_link', '__return_false');

@sjorswp
Copy link

sjorswp commented Apr 4, 2019

This code works well. But one suggestion; some people might want to display the current year. The get_the_date retrieves the year of the blog. So, if you want to always display the most current year (to make your website look up-to-date), use "date" instead:
<?php echo get_bloginfo( 'name' ) . ' ' . date( 'Y' ); ?>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment