Skip to content

Instantly share code, notes, and snippets.

@usm-interactive
Created October 20, 2021 18:14
Show Gist options
  • Save usm-interactive/53d8bca7521ab7d9d4edd5a8d2106a69 to your computer and use it in GitHub Desktop.
Save usm-interactive/53d8bca7521ab7d9d4edd5a8d2106a69 to your computer and use it in GitHub Desktop.
404 Page for Prana
<?php
/**
* The template for displaying 404 pages (not found)
*
* @link https://codex.wordpress.org/Creating_an_Error_404_Page
*
* @package Prana
*/
get_header();
// Content
$title = get_field('title', 'option');
$subtitle = get_field('subtitle', 'option');
$image = get_field('image', 'option');
$content = get_field('content', 'option');
?>
<div class="page-banner cover">
<?php
echo prana_acf_responsive_image($image, 'banner_image', [], [
'class' => 'cover-image page-banner-image position-50-50'
]);
?>
<div class="page-banner-content flush cover-content">
<h1 class="page-banner-title"><?php echo $title;?></h1>
<p class="page-banner-subtitle"><?php echo $subtitle; ?></p>
</div><!-- /.content-wrap -->
</div><!-- /.page-banner -->
<div class="module module-wysiwyg module-padded module-setting-bg-white module-setting-columns-one module-1">
<div class="container">
<div class="module-part-content flush padded">
<p><?php echo $content; ?></p>
</div>
</div>
</div>
<?php
get_footer();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment