Answers for "how to get custom logo url in wordpress"

-1

how to add site logo in wordpress

function themename_custom_logo_setup() {
 $defaults = array(
 'height'      => 100,
 'width'       => 400,
 'flex-height' => true,
 'flex-width'  => true,
 'header-text' => array( 'site-title', 'site-description' ),
 );
 add_theme_support( 'custom-logo', $defaults );
}
add_action( 'after_setup_theme', 'themename_custom_logo_setup' );
Posted by: Guest on May-27-2020
0

Change WordPress Login Logo Url

/* Change WordPress Login Logo Url */
function alter_login_logo_url() {
    return home_url();
}
add_filter( 'login_headerurl', 'alter_login_logo_url' );
Posted by: Guest on March-24-2021

Code answers related to "how to get custom logo url in wordpress"

Browse Popular Code Answers by Language