Question : change logo url on wordpress website
Answered by : hamza-najam
function oceanwp_child_modify_logo_link( $html, $blog_id ) { $custom_logo_id = get_theme_mod( 'custom_logo' ); $html = sprintf( '<a href="%1$s" class="custom-logo-link" rel="home">%2$s</a>', esc_url( 'https://google.com/' ), wp_get_attachment_image( $custom_logo_id, 'full', false, $custom_logo_attr ) ); return $html;
}
add_filter( 'get_custom_logo', 'oceanwp_child_modify_logo_link', 10, 2 );
Source : | Last Update : Thu, 18 Aug 22
Question : Change WordPress Login Logo Url
Answered by : petros-karagiannidis
/* Change WordPress Login Logo Url */
function alter_login_logo_url() { return home_url();
}
add_filter( 'login_headerurl', 'alter_login_logo_url' );
Source : | Last Update : Wed, 31 Mar 21