{"id":2793,"date":"2023-01-10T23:06:31","date_gmt":"2023-01-10T14:06:31","guid":{"rendered":"https:\/\/techstock-online.com\/?p=2793"},"modified":"2023-01-10T23:06:34","modified_gmt":"2023-01-10T14:06:34","slug":"add_widget_in_gaikan","status":"publish","type":"post","link":"https:\/\/techstock-online.com\/en\/add_widget_in_gaikan\/","title":{"rendered":"[WordPress] Solution when the &#8220;Widget&#8221; item does not appear in &#8220;Appearance&#8221;."},"content":{"rendered":"<div style=\"margin-top: 0px; margin-bottom: 0px;\" class=\"sharethis-inline-reaction-buttons\" ><\/div>\n<div id=\"ez-toc-container\" class=\"ez-toc-v2_0_82_2 counter-hierarchy ez-toc-counter ez-toc-grey ez-toc-container-direction\">\n<div class=\"ez-toc-title-container\">\n<p class=\"ez-toc-title\" style=\"cursor:inherit\">Table of Contents<\/p>\n<span class=\"ez-toc-title-toggle\"><a href=\"#\" class=\"ez-toc-pull-right ez-toc-btn ez-toc-btn-xs ez-toc-btn-default ez-toc-toggle\" aria-label=\"Toggle Table of Content\"><span class=\"ez-toc-js-icon-con\"><span class=\"\"><span class=\"eztoc-hide\" style=\"display:none;\">Toggle<\/span><span class=\"ez-toc-icon-toggle-span\"><svg style=\"fill: #999;color:#999\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" class=\"list-377408\" width=\"20px\" height=\"20px\" viewBox=\"0 0 24 24\" fill=\"none\"><path d=\"M6 6H4v2h2V6zm14 0H8v2h12V6zM4 11h2v2H4v-2zm16 0H8v2h12v-2zM4 16h2v2H4v-2zm16 0H8v2h12v-2z\" fill=\"currentColor\"><\/path><\/svg><svg style=\"fill: #999;color:#999\" class=\"arrow-unsorted-368013\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"10px\" height=\"10px\" viewBox=\"0 0 24 24\" version=\"1.2\" baseProfile=\"tiny\"><path d=\"M18.2 9.3l-6.2-6.3-6.2 6.3c-.2.2-.3.4-.3.7s.1.5.3.7c.2.2.4.3.7.3h11c.3 0 .5-.1.7-.3.2-.2.3-.5.3-.7s-.1-.5-.3-.7zM5.8 14.7l6.2 6.3 6.2-6.3c.2-.2.3-.5.3-.7s-.1-.5-.3-.7c-.2-.2-.4-.3-.7-.3h-11c-.3 0-.5.1-.7.3-.2.2-.3.5-.3.7s.1.5.3.7z\"\/><\/svg><\/span><\/span><\/span><\/a><\/span><\/div>\n<nav><ul class='ez-toc-list ez-toc-list-level-1 ' ><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-1\" href=\"https:\/\/techstock-online.com\/en\/add_widget_in_gaikan\/#At_any_rate_if_you_add_the_source_described_below_to_functionsphp_it_will_appear\" >At any rate, if you add the source described below to functions.php, it will appear.<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-2\" href=\"https:\/\/techstock-online.com\/en\/add_widget_in_gaikan\/#To_add_a_widget_area\" >To add a widget area<\/a><\/li><\/ul><\/nav><\/div>\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"At_any_rate_if_you_add_the_source_described_below_to_functionsphp_it_will_appear\"><\/span>At any rate, if you add the source described below to functions.php, it will appear.<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>&#8220;&lt;?php&#8221; and &#8220;? >&#8221; can be deleted if necessary.<\/p>\n\n\n\n<p>The following sources were taken from this site.<\/p>\n\n\n\n<p><a href=\"http:\/\/kawatama.net\/web\/1278\" target=\"_blank\" rel=\"noopener\" title=\"\">http:\/\/kawatama.net\/web\/1278<\/a><\/p>\n\n\n\n<p><br><br><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>&lt;?php \nif ( function_exists( 'register_sidebar' ) ) {\n register_sidebar( array(\n 'name' => 'widget area 01',\n 'id' => 'widget_area01',\n 'before_widget' => '&lt;div class=\u201dwidget\u201d>',\n 'after_widget' => '&lt;\/div>',\n 'before_title' => '&lt;h3>',\n 'after_title' => '&lt;\/h3>'\n ) );\n }\n?> \n<\/code><\/pre>\n\n\n\n<p><br><br><\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"To_add_a_widget_area\"><\/span>To add a widget area<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>We hope that the widget items are displayed safely.<\/p>\n\n\n\n<p><del>If the widget items have been cleared to appear in the appearance, the next step is to learn how to add a widget area.<\/del><\/p>\n\n\n\n<p> <br>============== 2018\/12\/23 Postscript. ==============  <br><br><\/p>\n\n\n\n<p>Now, by writing the source introduced at the beginning of this article, &#8220;Appearance&#8221; -&gt; &#8220;Widgets&#8221; would have been added to the admin page, but in fact, the earlier source was for adding a widget area.<\/p>\n\n\n\n<p>I had to do a lot of research on Google to solve the problem that &#8220;widgets&#8221; were not displayed in the first place because I was not very knowledgeable about it at the time I wrote this article.<\/p>\n\n\n\n<p>I was overjoyed to see the &#8220;widget&#8221; area added to the admin panel after copying and pasting the article.<\/p>\n\n\n\n<p><br><\/p>\n\n\n\n<p>The result is a success, but we made a mistake in the way we communicated it.<\/p>\n\n\n\n<p>I&#8217;m sorry.<\/p>\n\n\n\n<p>The following article provides detailed instructions on how to add a widget area and how to customize the output html tags.<\/p>\n\n\n\n<p>I would like to refer to it if I may.<\/p>\n\n\n\n<figure class=\"wp-block-embed is-type-wp-embed is-provider-tech-stock\uff5cweb\u5236\u4f5c\u306e\u30d6\u30ed\u30b0 wp-block-embed-tech-stock\uff5cweb\u5236\u4f5c\u306e\u30d6\u30ed\u30b0\"><div class=\"wp-block-embed__wrapper\">\n<blockquote class=\"wp-embedded-content\" data-secret=\"FMdhEFjy8b\"><a href=\"https:\/\/techstock-online.com\/add_widgetarea\/\">\u30a6\u30a3\u30b8\u30a7\u30c3\u30c8\u30a8\u30ea\u30a2\u3092\u8ffd\u52a0\u3057\u3066\u8868\u793a\u3059\u308b\u65b9\u6cd5\u3010WordPress\u3011<\/a><\/blockquote><iframe loading=\"lazy\" class=\"wp-embedded-content\" sandbox=\"allow-scripts\" security=\"restricted\" style=\"position: absolute; clip: rect(1px, 1px, 1px, 1px);\" title=\"&#8220;\u30a6\u30a3\u30b8\u30a7\u30c3\u30c8\u30a8\u30ea\u30a2\u3092\u8ffd\u52a0\u3057\u3066\u8868\u793a\u3059\u308b\u65b9\u6cd5\u3010WordPress\u3011&#8221; &#8212; Tech Stock\uff5cweb\u5236\u4f5c\u306e\u30d6\u30ed\u30b0\" src=\"https:\/\/techstock-online.com\/add_widgetarea\/embed\/#?secret=SOVBxMRgOK#?secret=FMdhEFjy8b\" data-secret=\"FMdhEFjy8b\" width=\"500\" height=\"282\" frameborder=\"0\" marginwidth=\"0\" marginheight=\"0\" scrolling=\"no\"><\/iframe>\n<\/div><\/figure>\n\n\n\n<p>============== 2018\/12\/23 Postscript End ============== <\/p>\n\n\n\n<p><br><\/p>\n\n\n\n<p>As mentioned in this article, you can add a widget area by copying and pasting the following source into functions.php.<\/p>\n\n\n\n<p>Note that &#8220;&lt;?php&#8221; and &#8220;? >&#8221; should be omitted and copied and pasted if they are already written in function.php.<\/p>\n\n\n\n<p><br><br><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code> &lt;?php \nif ( function_exists( 'register_sidebar' ) ) {\n register_sidebar( array(\n 'name' => 'widget area 01',\n 'id' => 'widget_area01',\n 'before_widget' => '&lt;div class=\u201dwidget\u201d>',\n 'after_widget' => '&lt;\/div>',\n 'before_title' => '&lt;h3>',\n 'after_title' => '&lt;\/h3>'\n ) );\n } \n?> <\/code><\/pre>\n\n\n\n<p><\/p>\n\n\n\n<p><br><br><\/p>\n\n\n\n<p>There is no need to edit &#8220;register_sidebar&#8221; in this source.<\/p>\n\n\n\n<p>&#8216;name&#8217; => &#8216;widget area 01&#8217;, the part on the right &#8220;widget area 01&#8221; may be changed freely.<\/p>\n\n\n\n<p>The &#8216;widget_area01&#8217; in &#8216;id&#8217; => &#8216;widget_area01&#8217;, must be rewritten to the one and only id, as it is used to call this widget area.<\/p>\n\n\n\n<p>&#8216;before_widget&#8217; => &#8216;&lt;div class=&#8221;widget&#8221;>&#8217;, and &#8216;after_widget&#8217; => &#8216;&lt;\/div>&#8217;, allow you to set tags that surround the general framework of this widget area.<\/p>\n\n\n\n<p>&#8216;before_title&#8217; => &#8216;&lt;h3>&#8217;, and &#8216;after_title&#8217; => &#8216;&lt;\/h3>&#8217; allow you to set tags surrounding the title portion of this widget area.<\/p>\n\n\n\n<p>The following article provides a slightly more detailed explanation of each item, which we hope you will find useful.<\/p>\n\n\n\n<figure class=\"wp-block-embed is-type-wp-embed is-provider-tech-stock\uff5cweb\u5236\u4f5c\u306e\u30d6\u30ed\u30b0 wp-block-embed-tech-stock\uff5cweb\u5236\u4f5c\u306e\u30d6\u30ed\u30b0\"><div class=\"wp-block-embed__wrapper\">\n<blockquote class=\"wp-embedded-content\" data-secret=\"FMdhEFjy8b\"><a href=\"https:\/\/techstock-online.com\/add_widgetarea\/\">\u30a6\u30a3\u30b8\u30a7\u30c3\u30c8\u30a8\u30ea\u30a2\u3092\u8ffd\u52a0\u3057\u3066\u8868\u793a\u3059\u308b\u65b9\u6cd5\u3010WordPress\u3011<\/a><\/blockquote><iframe loading=\"lazy\" class=\"wp-embedded-content\" sandbox=\"allow-scripts\" security=\"restricted\" style=\"position: absolute; clip: rect(1px, 1px, 1px, 1px);\" title=\"&#8220;\u30a6\u30a3\u30b8\u30a7\u30c3\u30c8\u30a8\u30ea\u30a2\u3092\u8ffd\u52a0\u3057\u3066\u8868\u793a\u3059\u308b\u65b9\u6cd5\u3010WordPress\u3011&#8221; &#8212; Tech Stock\uff5cweb\u5236\u4f5c\u306e\u30d6\u30ed\u30b0\" src=\"https:\/\/techstock-online.com\/add_widgetarea\/embed\/#?secret=SOVBxMRgOK#?secret=FMdhEFjy8b\" data-secret=\"FMdhEFjy8b\" width=\"500\" height=\"282\" frameborder=\"0\" marginwidth=\"0\" marginheight=\"0\" scrolling=\"no\"><\/iframe>\n<\/div><\/figure>\n\n\n\n<p>For now, you can add a new widget area by putting this description in functions.php of WordPress.<\/p>\n\n\n\n<p>I hope this article is helpful to you.<\/p>\n<div style=\"margin-top: 0px; margin-bottom: 0px;\" class=\"sharethis-inline-reaction-buttons\" ><\/div>","protected":false},"excerpt":{"rendered":"<p>At any rate, if you add the source described below to functions.php, it will appear. &#8220;&lt;?php&#8221; an [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_locale":"en_US","_original_post":"http:\/\/techstock.php.xdomain.jp\/?p=329","footnotes":""},"categories":[8],"tags":[30,32],"class_list":["post-2793","post","type-post","status-publish","format-standard","hentry","category-wordpress","tag-wordpress","tag-32","en-US"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/techstock-online.com\/wp-json\/wp\/v2\/posts\/2793","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/techstock-online.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/techstock-online.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/techstock-online.com\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/techstock-online.com\/wp-json\/wp\/v2\/comments?post=2793"}],"version-history":[{"count":30,"href":"https:\/\/techstock-online.com\/wp-json\/wp\/v2\/posts\/2793\/revisions"}],"predecessor-version":[{"id":2827,"href":"https:\/\/techstock-online.com\/wp-json\/wp\/v2\/posts\/2793\/revisions\/2827"}],"wp:attachment":[{"href":"https:\/\/techstock-online.com\/wp-json\/wp\/v2\/media?parent=2793"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/techstock-online.com\/wp-json\/wp\/v2\/categories?post=2793"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/techstock-online.com\/wp-json\/wp\/v2\/tags?post=2793"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}