Call out in Universal Snippet
-
Hi Woody team!
I’m trying to put together a universal snippet with PHP and CSS to customize the WP login page. How do would edit the echo line to pull in or reflect the css within this snippet? or do i have to create a separate snippet for each? code below
Thanks in advance!
/**
* Custom login page
*/
function my_custom_login()
{
echo ‘<link rel=”stylesheet” type=”text/css” href=”‘ . get_bloginfo(‘stylesheet_directory’) . ‘/style.css” />’;
}
add_action(‘login_head’, ‘my_custom_login’);add_filter( ‘login_headerurl’, ‘my_custom_login_url’ );
function my_custom_login_url($url) {
return ‘https://trainingdemo.nmg-services.online/’;
}
/* Custom login page */
#login h1 a {
background-image: url(“https://trainingdemo.nmg-services.online/wp-content/uploads/2020/04/2019_8_4_NMG_logo_whiteouline.png”);
background-size: 200px 84px;
width: 200px;
height: 84px;
}
- The topic ‘Call out in Universal Snippet’ is closed to new replies.