<?php
/**
* Cocoon WordPress Theme
* @author: yhira
* @link: https://wp-cocoon.com/
* @license: http://www.gnu.org/licenses/gpl-2.0.html GPL v2 or later
*/
if ( !defined( 'ABSPATH' ) ) exit; ?>
<?php get_header(); ?>
<article class="post article">
<?php
// 各値を変数に格納
$not_found_title = get_404_page_title();
$not_found_image_url = get_404_image_url();
?>
<?php if ($not_found_title): ?>
<h1 class="entry-title"><?php echo $not_found_title; ?></h1>
<?php endif; ?>
<?php if ($not_found_image_url): ?>
<img class="not-found" src="<?php echo esc_url($not_found_image_url); ?>" alt="404 Not Found" />
<?php endif; ?>
<?php echo do_shortcode(wpautop(get_404_page_message())); ?>
<?php //404ページウィジェット
if ( is_active_sidebar( '404-page' ) ): ?>
<?php dynamic_sidebar( '404-page' ); ?>
<?php endif; ?>
</article>
<!-- END article.not-found -->
<?php get_footer(); ?>