Skip to content

Instantly share code, notes, and snippets.

@SiR-DanieL
Last active October 30, 2023 10:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save SiR-DanieL/ceef4da6115d1bf2497c6a354fde8250 to your computer and use it in GitHub Desktop.
Save SiR-DanieL/ceef4da6115d1bf2497c6a354fde8250 to your computer and use it in GitHub Desktop.
Customize the Footer Credits in Storefront
<?php
/**
* Display the theme credit
*
* @since 1.0.0
* @return void
*/
function storefront_credit() {
?>
<div class="site-info">
<?php echo esc_html( apply_filters( 'storefront_copyright_text', $content = '&copy; ' . get_bloginfo( 'name' ) . ' ' . date( 'Y' ) ) ); ?>
<?php if ( apply_filters( 'storefront_credit_link', true ) ) { ?>
<br /> <?php echo '<a href="https://woocommerce.com" target="_blank" title="' . esc_attr__( 'WooCommerce - The Best eCommerce Platform for WordPress', 'storefront' ) . '" rel="author">' . esc_html__( 'Built with Storefront &amp; WooCommerce', 'storefront' ) . '</a>' ?> by <a href="https://yourdomain.com" title="Your Company Name">Your Company Name</a>.
<?php } ?>
</div><!-- .site-info -->
<?php
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment