[Resolved] Custom 404 Pages

Home Forums Support [Resolved] Custom 404 Pages

Home Forums Support Custom 404 Pages

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #113852
    Paul

    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!

    #113876
    Tom
    Lead Developer
    Lead Developer

    You can use CSS ๐Ÿ™‚

    .error404 .site-header {
          display: none;
    }
    #114029
    Paul

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

    #114101
    Tom
    Lead Developer
    Lead Developer

    No problem ๐Ÿ™‚

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.