David Stockdale's Scrapcode

Changing Understrap “site-info”

Now the organisation I volunteer at is moving over to a bootstrap based theme named “Understrap”.

When fiddling with the official “Understrap Child Theme” I figured out a few of my old tricks.

In order to change the annoying copyright info in “site-footer” what you’ll actually want to aim at is “site-info”.

I accomplished that by adding this code to my child themes “functions.php”:

/**
 * Changes "site-info" to our boilerplate copyright.
 * Also adds Log In and Log Out links.
 */
function remove_parent_functions() {
    remove_action( 'understrap_site_info', 'understrap_add_site_info' );
    add_action( 'understrap_site_info', 'understrap_add_site_child_info' );
}
add_action( 'init', 'remove_parent_functions', 15 );
function understrap_add_site_child_info() {
    //your new site footer here.
}

Leave a Reply