First some information that you need. I am using Newspaper 8.0 and the tagDiv Mobile Theme plugin. My website address is https://evscconnect.com.
I have a website that is a private intranet where users gain access by logging in using the wp-login.php page. Everything on the site is working great except for when users login on their phones. I am using a function in my child theme to replace the WordPress logo and styles with my own custom styles. The function works fine on desktops and tablets. However, when I view the login page on a phone, I get the default WordPress login page.
Here is the function I am using.
function my_logincustomCSSfile() {
wp_enqueue_style('login-styles', get_stylesheet_directory_uri() . '/login/login_styles.css');
}
add_action('login_enqueue_scripts', 'my_logincustomCSSfile');
Is there another piece of code that I need to add to allow my logo and custom styles for the wp-login.php page to appear on phones? Or am I missing something in the Newspaper Theme Panel?
Thanks,
Jerrad
-
This topic was modified 8 years by
Jerrad. Reason: Forgot to modify title with what I ended up making the post about
When I don’t have the Mobile Theme plugin activated, my stylings and logo appear on the wp-login.php page for all devices including phones.
When the plugin is activated, it goes back to being the WP default wp-login.php page for phones only. Tablets and desktops see my custom login page.
