Title: 404 Error Layout
Last modified: March 12, 2019

---

# 404 Error Layout

 *  Resolved [Johnny](https://wordpress.org/support/users/johnny18sg/)
 * (@johnny18sg)
 * [7 years, 3 months ago](https://wordpress.org/support/topic/404-error-layout/)
 * Hi Ben,
 * When the 404 error page is shown, it defaults to the Double Sidebars layout.
 * Is there a way to change the layout to No Sidebar?
 * Thanks,
    Johnny
 * PS: I have a child theme to modify functions.php.

Viewing 3 replies - 1 through 3 (of 3 total)

 *  Theme Author [Ben Sibley](https://wordpress.org/support/users/bensibley/)
 * (@bensibley)
 * [7 years, 3 months ago](https://wordpress.org/support/topic/404-error-layout/#post-11303363)
 * Hi Johnny,
 * There are a few ways you can approach this with a child theme, but here’s what
   I think is the simplest method.
 * Copy both sidebar-left.php and sidebar-right.php from Mission News into your 
   child theme. Then add the following snippet to the very top of both files.
 *     ```
       if ( is_404() ) {
         return;
       }
       ```
   
 * That simply checks if the current page is the 404 page and will exit the file
   without running any of the code which means no sidebar is output.
 *  Thread Starter [Johnny](https://wordpress.org/support/users/johnny18sg/)
 * (@johnny18sg)
 * [7 years, 2 months ago](https://wordpress.org/support/topic/404-error-layout/#post-11305544)
 * Thank you!
 *  Theme Author [Ben Sibley](https://wordpress.org/support/users/bensibley/)
 * (@bensibley)
 * [7 years, 2 months ago](https://wordpress.org/support/topic/404-error-layout/#post-11308168)
 * You’re welcome 🙂

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘404 Error Layout’ is closed to new replies.

 * ![](https://i0.wp.com/themes.svn.wordpress.org/mission-news/1.65/screenshot.png)
 * Mission News
 * [Support Threads](https://wordpress.org/support/theme/mission-news/)
 * [Active Topics](https://wordpress.org/support/theme/mission-news/active/)
 * [Unresolved Topics](https://wordpress.org/support/theme/mission-news/unresolved/)
 * [Reviews](https://wordpress.org/support/theme/mission-news/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [Ben Sibley](https://wordpress.org/support/users/bensibley/)
 * Last activity: [7 years, 2 months ago](https://wordpress.org/support/topic/404-error-layout/#post-11308168)
 * Status: resolved