forked from xserver-inc/cocoon
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path404.php
29 lines (25 loc) · 880 Bytes
/
404.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
<?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">
<!--ループ開始-->
<h1 class="entry-title"><?php echo get_404_page_title(); ?></h1>
<?php if ( get_404_image_url() ): ?>
<img class="not-found" src="<?php echo get_404_image_url(); ?>" alt="404 Not Found" />
<?php else: ?>
<img class="not-found" src="<?php echo get_template_directory_uri() ?>/images/404.png" alt="404 Not Found" />
<?php endif ?>
<?php echo wpautop(get_404_page_message()); ?>
<?php //404ページウィジェット
if ( is_active_sidebar( '404-page' ) ): ?>
<?php dynamic_sidebar( '404-page' ); ?>
<?php endif; ?>
</article>
<!-- END div.post -->
<?php get_footer(); ?>