404.php 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. <?php
  2. /**
  3. * The template for displaying 404 pages (not found).
  4. *
  5. * @link https://codex.wordpress.org/Creating_an_Error_404_Page
  6. *
  7. * @package Sakurairo
  8. */
  9. add_action('wp_head', function() {
  10. wp_dequeue_style('wp-block-library');
  11. wp_dequeue_style('wp-block-library-theme');
  12. wp_dequeue_style('entry-content');
  13. }, 5);
  14. ?>
  15. <!DOCTYPE html>
  16. <html <?php language_attributes(); ?>>
  17. <head>
  18. <meta charset="<?php bloginfo('charset'); ?>">
  19. <meta name="viewport" content="width=device-width, initial-scale=1">
  20. <link rel="shortcut icon" href="<?php echo esc_url(iro_opt('favicon_link', '')); ?>" />
  21. <?php wp_head(); ?>
  22. </head>
  23. <body <?php body_class(); ?>>
  24. <section class="error-404 not-found">
  25. <div class="error-img" style="height: 66%;">
  26. <div class="anim-icon" id="404" style="height: 100%;"></div>
  27. </div>
  28. <div class="err-button back" style="display: flex; flex-direction: row; flex-wrap: wrap; align-content: center; justify-content: center;">
  29. <a id="golast" href="javascript:history.go(-1);"><?php _e('Return to previous page', 'sakurairo'); ?></a>
  30. <a id="gohome" href="<?php echo esc_url(home_url('/')); ?>"><?php _e('Return to home page', 'sakurairo'); ?></a>
  31. </div>
  32. <div style="display:block; width:284px;margin: auto;">
  33. <p style="margin-bottom: 1em;margin-top: 1.5em;text-align: center;font-size: 15px;"><?php _e('Don\'t worry, search in site?', 'sakurairo'); ?></p>
  34. <form class="s-search" method="get" action="<?php echo esc_url(home_url('/')); ?>" role="search">
  35. <input class="text-input" style="padding: 8px 20px;" type="search" name="s" placeholder="<?php _e('Search...', 'sakurairo'); ?>" required>
  36. </form>
  37. </div>
  38. </section>
  39. <script src="<?php echo $shared_lib_basepath . '/js/anf.js'; ?>" type="text/javascript"></script>
  40. <?php wp_footer(); ?>
  41. </body>
  42. </html>