Last active
October 30, 2023 10:11
-
-
Save SirDarcanos/ceef4da6115d1bf2497c6a354fde8250 to your computer and use it in GitHub Desktop.
Customize the Footer Credits in Storefront
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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 = '© ' . 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 & 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