404 page css ?

Post Reply
mahmut
Ssr. Bludit
Posts: 24
Joined: Fri Feb 12, 2016 2:27 pm

Hello , I want to create a custom template for a page not found error . How do I add CSS code ?

Thanks.
User avatar
diego
Site Admin
Posts: 773
Joined: Sat May 16, 2015 2:53 pm
Been thanked: 1 time
Contact:

Hi,
you can check the 404 page with the variable $Url->notFound();

Code: Select all

<?php

if( $Url->notFound() ) {
 // LOAD THE CSS
}

?>
Post Reply