Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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

This comment has been minimized.

Copy link

commented Aug 9, 2016

Great

@joeabill

This comment has been minimized.

Copy link

commented Oct 15, 2016

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

@asterion

This comment has been minimized.

Copy link

commented Jul 16, 2017

gracias

@trueqap

This comment has been minimized.

Copy link

commented Oct 19, 2017

Working well, thanks

@KrisPearson

This comment has been minimized.

Copy link

commented Nov 16, 2017

Cheers!

@edadams

This comment has been minimized.

Copy link

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

This comment has been minimized.

Copy link

commented Sep 20, 2018

Another person just wanting to say thank you!

@Vusys

This comment has been minimized.

Copy link

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

This comment has been minimized.

Copy link

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
You can’t perform that action at this time.