I’ve created a 404.php
page and my theme correctly loads that page when an error is made. My question is – how do I style it? I notice that the body tag like this:
<body class="error404">
So should I call that in an enqueue to load some css, perhaps something like this:
// Error 404
if ( is_page(404)):
// Load Newsletter Main CSS
wp_enqueue_style( '404 css', get_template_directory_uri() . '/css/404.css', array(), null);
endif;
My question is – how should I associate the 404.php
page with a css stylesheet?
Thanks