Skip to content

Instantly share code, notes, and snippets.

@ina-amagami
Created February 28, 2022 12:27
Show Gist options
  • Save ina-amagami/77263e875401ffb262799d37f00ecd99 to your computer and use it in GitHub Desktop.
Save ina-amagami/77263e875401ffb262799d37f00ecd99 to your computer and use it in GitHub Desktop.
JINの404ページから読み込まれるcontent-none.phpを英語化
<div class="content-none">
<?php if( is_404() ){
echo '<p>Thank you for visiting our website. <br />We\'re sorry, but the article you tried to access has either been deleted or the URL has been changed. We apologize for the inconvenience, but please try the following methods to find the page you are looking for again.</p>';
}elseif( is_search() ){
$r = get_search_query();
echo '<p>I searched for "'.$r.'", but could not find the article. We apologize for the inconvenience, but please try the following methods to find the article you are looking for again.</p>';
} ?>
<h2>1. search and find</h2>
<p>Enter the keywords that correspond to the content you are looking for in the search box. A list of pages with similar themes will be displayed.</p>
<div class="widget-box">
<?php get_search_form(); ?>
</div>
<h2>2. find by category</h2>
<p>Please try to find the page you are looking for again from the top page of the respective category.</p>
<h3>Category List</h3>
<ul class="cat404">
<?php
wp_list_categories(array(
'title_li' => '',
'depth' => 1
)
);
?>
</ul>
</div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment