woocommerce copyright change easy

This advice was from wp crafter, thank you soo much!

need to change your woocommerce footer and confused with child themes and other stuff, then dont work here is a quick work around that works fast and well.

firstly install this plugin https://en-gb.wordpress.org/plugins/my-custom-functions/

once installed activate and look on the left hand side bar for my appearance and custom functions, select that and enter these lines under the line that starts, save and fixed! 

to add company info change this line like so 

&copy; MY Web Site Name Here!! <?php echo get_bloginfo( ‘name’ ) . ‘ ‘ . get_the_date( ‘Y’ ); ?>

THIS IS THE CODE BELOW – COPY AND PASTE THIS 

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
}

 

Leave a Reply

Your email address will not be published. Required fields are marked *

Discover more from a day in the life of wayne ward....

Subscribe now to keep reading and get access to the full archive.

Continue reading