Another fix for login page
-
I was just about to post this when you updated to do half of my fix. So, to stop script from loading on login page also ….
Add this function to top of php:
function is_login_page() { return in_array($GLOBALS['pagenow'], array('wp-login.php', 'wp-register.php')); }
and change the two style and script loading lines:
if (is_login_page() !== FALSE ) add_action( 'init', 'fttb_scripts' ); if (is_login_page() !== FALSE ) add_action( 'wp_enqueue_scripts', 'fttb_styles' );
Viewing 6 replies - 1 through 6 (of 6 total)
Viewing 6 replies - 1 through 6 (of 6 total)
- The topic ‘Another fix for login page’ is closed to new replies.