• Resolved Anandabrata Ghosh

    (@ananddevops)


    Hello,

    I am on a WordPress network. I am trying to remove the site info – Built with Storefront & WooCommerce from a particular site e.g site2.com. To do that I am adding the code

    $current_site = get_current_site();
    if($current_site->domain == 'site2.com'){
    	remove_action(storefront_footer, storefront_credit,20);
    }

    to my functions.php . I have tried to add the same to my Storefront parent theme as well the child, one at a time. Either change does not reflect the purpose.

    Is there an issue with the code? Kindly suggest.

    Thanks

Viewing 1 replies (of 1 total)
  • Your coding isn’t correct. You’d do something like this.

    add_action( 'wp_footer', 'storefront_credit' );
    function storefront_credit(){
    	remove_action( 'wp_footer', 'storefront_credit' );
    }
Viewing 1 replies (of 1 total)

The topic ‘Remove Site info using functions.php’ is closed to new replies.