על מנת להקים דף 404 הכולל תפריט עליון + סרגל תחתון, אנחנו משלבים בין התבנית של העמוד ב-BeTheme לבין התבנית של דף ה-404, לפי השלבים הבאים:
$translate['404-title'] = mfn_opts_get('translate') ? mfn_opts_get('translate-404-title','Ooops… Error 404') : __('Ooops… Error 404','betheme');
$translate['404-subtitle'] = mfn_opts_get('translate') ? mfn_opts_get('translate-404-subtitle','We`re sorry, but the page you are looking for doesn`t exist.') : __('We are sorry, but the page you are looking for does not exist.','betheme');
$translate['404-text'] = mfn_opts_get('translate') ? mfn_opts_get('translate-404-text','Please check entered address and try again <em>or</em>') : __('Please check entered address and try again or ','betheme');
$translate['404-btn'] = mfn_opts_get('translate') ? mfn_opts_get('translate-404-btn','go to homepage') : __('go to homepage','betheme');
get_header();
?>
<!– #Content –>
<?php if( $customID ): ?>
<div id="Content">
<div class="content_wrapper clearfix">
<!– .sections_group –>
<div class="sections_group">
<?php
mfn_builder_print( $customID, true ); // Content Builder & WordPress Editor Content
?>
</div>
<!– .four-columns – sidebar –>
<?php get_sidebar(); ?>
</div>
</div>
<?php else: ?>
<div id="Content">
<div class="content_wrapper clearfix">
<!– .sections_group –>
<div class="sections_group">
<div id="Error_404">
<div class="container">
<div class="column one">
<div class="error_pic">
<i class="<?php mfn_opts_show('error404-icon','icon-traffic-cone'); ?>"></i>
</div>
<div class="error_desk">
<h2><?php echo $translate['404-title']; ?></h2>
<h4><?php echo $translate['404-subtitle']; ?></h4>
<p><span class="check"><?php echo $translate['404-text']; ?></span> <a class="button button_filled" href="<?php echo site_url(); ?>"><?php echo $translate['404-btn']; ?></a></p>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<?php endif; ?>
<?php get_footer();
// Omit Closing PHP Tags
left:auto;
right:auto;
overflow:visible !important;
margin-top:200px;
margin-bottom:200px;
}
.error404 #Subheader ul {
display:none;
}