Skip to content
Browse files

Removed the conditional sidebar logic from the 404 template

Since you'd probably always want the sidebar and if not you'd just
delete it from the template
  • Loading branch information...
1 parent 187f7cd commit 5d370c4f5b94ba2507b646ef4d233c03a99527f7 @mimoYmima committed Aug 4, 2012
Showing with 1 addition and 9 deletions.
  1. +1 −9 404.php
View
10 404.php
@@ -1,9 +1,6 @@
<?php get_header(); ?>
-<?php // look to see if we've disabled sidebar in a custom field, if not show it
- $disableSidebarLeft = get_post_meta($post->ID, 'disableSidebarLeft', $single = true);
- if ($disableSidebarLeft !== 'true') { get_sidebar('SidebarLeft'); }
-?>
+<!--Put your sidebars in wherever necessary-->
<!--BEGIN: Content-->
<div id="content" role="main">
@@ -18,10 +15,5 @@
</div>
<!--END: Content-->
-
-<?php // look to see if we've disabled sidebar in a custom field, if not show it
- $disableSidebarRight = get_post_meta($post->ID, 'disableSidebarRight', $single = true);
- if ($disableSidebarRight !== 'true') { get_sidebar('SidebarRight'); }
-?>
<?php get_footer(); ?>

0 comments on commit 5d370c4

Please sign in to comment.
Something went wrong with that request. Please try again.