Viewing 2 replies - 1 through 2 (of 2 total)
  • I have a site that’s doing this too. But I don’t think it’s a bug that happens on all sites. I’m pretty sure I have this running successfully on several other sites. The one site it’s not working on, though, is on an IP address in a subdirectory. I wonder if that is the cause.

    I’m wrong. This thing is messed up. This code really does only include the styles when the user is logged in:

    function include_css() {
    
    		if( current_user_can( 'manage_options') ):
    			echo '<style id="simpler-css-style" type="text/css">' . "\n";
    			echo self::get_css();
    			echo '</style><!-- end of custom css -->' . "\n";
    
    		endif;
    
    	}

    Now I wonder if my other sites are screwed up and I didn’t test them as the public user.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘CSS not loading into header when not logged in’ is closed to new replies.