How to remove or change footer in storefront

Here is code:

/* Code 1: */
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
}

/* Code 2: */

function storefront_credit() {

?>
<div class=”site-info”>
© Mattress USA from Nest Bedding company. Nest Bedding Coupon 2018 ‘<a href=”http://www.mattress-usa.pncall.com/sitemap_index.xml”>Sitemap</a>’
</div<!– .site-info –>
<?php
}

2018-04-10T07:27:41+00:00

Leave A Comment

shares