Site logo

Archived topic

Custom 404 Pages

3 replies · Started by Paul on June 10, 2015

Viewing posts 1–4 of 4

I'm trying to customize the 404 page (404.php). I want to keep the primary navigation at top, but remove the header just below that.

<?php
get_header(); ?>

appears to be the line that loads both the primary nav and the header.

How do I include only the primary navigation? 404.php can't be edited in the page editor, hence I cannot turn off the header there via Disable Elements.

Thanks in advance!

You can use CSS :)

.error404 .site-header {
      display: none;
}

Thanks Tom. I wasn't sure what classes I needed.

No problem :)

This archived topic is closed to new replies.