Warning: Creating default object from empty value in /home/mayankra/public_html/wp-content/themes/salient/nectar/redux-framework/ReduxCore/inc/class.redux_filesystem.php on line 29

Deprecated: Unparenthesized `a ? b : c ? d : e` is deprecated. Use either `(a ? b : c) ? d : e` or `a ? b : (c ? d : e)` in /home/mayankra/public_html/wp-content/plugins/js_composer_salient/include/classes/editors/class-vc-frontend-editor.php on line 653
How to Replace WordPress Header Logo, Logo URL and Title? - Top Website & Mobile Application Development Team
Notice:Trying to access array offset on value of type bool in /home/mayankra/public_html/wp-content/themes/salient/nectar/helpers/media.php on line 368

Notice: Trying to access array offset on value of type bool in /home/mayankra/public_html/wp-content/themes/salient/nectar/helpers/media.php on line 368

/**

* Replaces the login header logo

*/

add_action( ‘login_head’, ‘namespace_login_style’ );

function namespace_login_style() {

echo ‘<style>.login h1 a { background-image: url( ‘ . get_template_directory_uri() . ‘/images/logo.png ) !important; }</style>’;

}

 

/**

* Replaces the login header logo URL

*

* @param $url

*/

add_filter( ‘login_headerurl’, ‘namespace_login_headerurl’ );

function namespace_login_headerurl( $url ) {

$url = home_url( ‘/’ );

return $url;

}

 

 

Leave a Reply