{"id":5357,"date":"2021-11-24T15:05:16","date_gmt":"2021-11-24T06:05:16","guid":{"rendered":"https:\/\/hanami-web.tokyo.jp\/blog\/?p=5357"},"modified":"2021-11-24T15:05:17","modified_gmt":"2021-11-24T06:05:17","slug":"pagetop-setting","status":"publish","type":"post","link":"https:\/\/hanami-web.tokyo.jp\/blog\/en\/website-running\/oceanwp\/pagetop-setting\/","title":{"rendered":"[OceanWP Explanation] Setting a button to send to the TOP page"},"content":{"rendered":"<p>We will explain how to set up a back to TOP button in the free WordPress theme OceanWP.<\/p>\n\n\n\n<p>This button appears at the bottom of the page and scrolls to the top.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" width=\"1024\" height=\"479\" src=\"https:\/\/hanami-web.tokyo.jp\/blog\/wp-content\/uploads\/2021\/11\/image-94-1024x479.png\" alt=\"\" class=\"wp-image-5358\" srcset=\"https:\/\/hanami-web.tokyo.jp\/blog\/wp-content\/uploads\/2021\/11\/image-94-1024x479.png 1024w, https:\/\/hanami-web.tokyo.jp\/blog\/wp-content\/uploads\/2021\/11\/image-94-300x140.png 300w, https:\/\/hanami-web.tokyo.jp\/blog\/wp-content\/uploads\/2021\/11\/image-94-768x359.png 768w, https:\/\/hanami-web.tokyo.jp\/blog\/wp-content\/uploads\/2021\/11\/image-94-1536x719.png 1536w, https:\/\/hanami-web.tokyo.jp\/blog\/wp-content\/uploads\/2021\/11\/image-94.png 1881w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n\n<div class=\"sc\"><a href=\"https:\/\/hanami-web.tokyo.jp\/blog\/en\/howto-oceanwp-setting\/\" title=\"OceanWP Theme Explanation Table of Contents\">\r\n\t<p class=\"sc-txt01\">Our site is designed using the OceanWP theme and Brizy plugin.<\/p>\r\n\t<p class=\"sc-txt01\">I have created an explanatory article on how to set it up as a reminder, so please feel free to use it as a reference!<\/p>\r\n\t<p class=\"sc-txt02\">OceanWP Explanation Index \u2192<\/p>\r\n<\/a><\/div>\n\n\n\n<p><\/p>\n\n\n\n<div id=\"ez-toc-container\" class=\"ez-toc-v2_0_82_2 ez-toc-wrap-center counter-hierarchy ez-toc-counter ez-toc-custom 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: #000000;color:#000000\" 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: #000000;color:#000000\" 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:\/\/hanami-web.tokyo.jp\/blog\/en\/website-running\/oceanwp\/pagetop-setting\/#top%e3%81%b8%e3%82%b9%e3%82%af%e3%83%ad%e3%83%bc%e3%83%ab%e8%a8%ad%e5%ae%9a\" >Scroll to TOP setting<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-2\" href=\"https:\/\/hanami-web.tokyo.jp\/blog\/en\/website-running\/oceanwp\/pagetop-setting\/#top%e3%81%b8%e3%82%b9%e3%82%af%e3%83%ad%e3%83%bc%e3%83%ab%e8%a8%ad%e5%ae%9a%e3%81%a7%e5%87%ba%e6%9d%a5%e3%82%8b%e4%ba%8b\" >What you can do with the Scroll to TOP setting<\/a><ul class='ez-toc-list-level-3' ><li class='ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-3\" href=\"https:\/\/hanami-web.tokyo.jp\/blog\/en\/website-running\/oceanwp\/pagetop-setting\/#top%e3%81%b8%e3%82%b9%e3%82%af%e3%83%ad%e3%83%bc%e3%83%ab%e3%83%9c%e3%82%bf%e3%83%b3%e8%a1%a8%e7%a4%ba%e9%9d%9e%e8%a1%a8%e7%a4%ba\" >Scroll to TOP button display\/hide<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-4\" href=\"https:\/\/hanami-web.tokyo.jp\/blog\/en\/website-running\/oceanwp\/pagetop-setting\/#%e3%82%a2%e3%82%a4%e3%82%b3%e3%83%b3\" >icon<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-5\" href=\"https:\/\/hanami-web.tokyo.jp\/blog\/en\/website-running\/oceanwp\/pagetop-setting\/#%e4%bd%8d%e7%bd%ae\" >position<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-6\" href=\"https:\/\/hanami-web.tokyo.jp\/blog\/en\/website-running\/oceanwp\/pagetop-setting\/#%e4%b8%8b%e3%81%8b%e3%82%89%e3%81%ae%e4%bd%8d%e7%bd%ae\" >Position from below<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-7\" href=\"https:\/\/hanami-web.tokyo.jp\/blog\/en\/website-running\/oceanwp\/pagetop-setting\/#%e3%83%9c%e3%82%bf%e3%83%b3%e3%82%b5%e3%82%a4%e3%82%ba\" >Button Size<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-8\" href=\"https:\/\/hanami-web.tokyo.jp\/blog\/en\/website-running\/oceanwp\/pagetop-setting\/#%e3%82%a2%e3%82%a4%e3%82%b3%e3%83%b3%e3%82%b5%e3%82%a4%e3%82%ba\" >Icon Size<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-9\" href=\"https:\/\/hanami-web.tokyo.jp\/blog\/en\/website-running\/oceanwp\/pagetop-setting\/#%e8%a7%92%e3%81%ae%e4%b8%b8%e3%81%bf\" >Corner radius<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-10\" href=\"https:\/\/hanami-web.tokyo.jp\/blog\/en\/website-running\/oceanwp\/pagetop-setting\/#%e8%89%b2%e3%81%ae%e8%a8%ad%e5%ae%9a\" >Color Settings<\/a><\/li><\/ul><\/li><\/ul><\/nav><\/div>\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"top%e3%81%b8%e3%82%b9%e3%82%af%e3%83%ad%e3%83%bc%e3%83%ab%e8%a8%ad%e5%ae%9a\"><\/span>Scroll to TOP setting<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>You can set this in the \u201cScroll to top\u201d section under \u201cAppearance\u201d &gt; \u201cCustomize\u201d &gt; \u201cBasic Settings\u201d in the WordPress dashboard.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" width=\"547\" height=\"852\" src=\"https:\/\/hanami-web.tokyo.jp\/blog\/wp-content\/uploads\/2021\/11\/image-95.png\" alt=\"\" class=\"wp-image-5359\" srcset=\"https:\/\/hanami-web.tokyo.jp\/blog\/wp-content\/uploads\/2021\/11\/image-95.png 547w, https:\/\/hanami-web.tokyo.jp\/blog\/wp-content\/uploads\/2021\/11\/image-95-193x300.png 193w\" sizes=\"(max-width: 547px) 100vw, 547px\" \/><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"top%e3%81%b8%e3%82%b9%e3%82%af%e3%83%ad%e3%83%bc%e3%83%ab%e8%a8%ad%e5%ae%9a%e3%81%a7%e5%87%ba%e6%9d%a5%e3%82%8b%e4%ba%8b\"><\/span>What you can do with the Scroll to TOP setting<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p><span data-mce-type=\"bookmark\" id=\"mce_1_start\" data-mce-style=\"overflow:hidden;line-height:0px\" style=\"overflow:hidden;line-height:0px\"><\/span><\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"top%e3%81%b8%e3%82%b9%e3%82%af%e3%83%ad%e3%83%bc%e3%83%ab%e3%83%9c%e3%82%bf%e3%83%b3%e8%a1%a8%e7%a4%ba%e9%9d%9e%e8%a1%a8%e7%a4%ba\"><\/span>Scroll to TOP button display\/hide<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p>You can toggle the scroll to TOP button on\/off.<\/p>\n\n\n\n<p><\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"%e3%82%a2%e3%82%a4%e3%82%b3%e3%83%b3\"><\/span>icon<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p>You can choose from 9 different icons.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" width=\"361\" height=\"201\" src=\"https:\/\/hanami-web.tokyo.jp\/blog\/wp-content\/uploads\/2021\/11\/image-96.png\" alt=\"\" class=\"wp-image-5360\" srcset=\"https:\/\/hanami-web.tokyo.jp\/blog\/wp-content\/uploads\/2021\/11\/image-96.png 361w, https:\/\/hanami-web.tokyo.jp\/blog\/wp-content\/uploads\/2021\/11\/image-96-300x167.png 300w, https:\/\/hanami-web.tokyo.jp\/blog\/wp-content\/uploads\/2021\/11\/image-96-120x68.png 120w, https:\/\/hanami-web.tokyo.jp\/blog\/wp-content\/uploads\/2021\/11\/image-96-160x90.png 160w\" sizes=\"(max-width: 361px) 100vw, 361px\" \/><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"%e4%bd%8d%e7%bd%ae\"><\/span>position<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p>It can be set to the right or left.<\/p>\n\n\n\n<p>If you have reCapture set up in Contact form7, etc., the reCapture icon will appear on the right side. The Scroll to TOP button and the reCapture icon overlap, so I changed the setting of the Scroll to TOP button to the left.<\/p>\n\n\n\n<p><span data-mce-type=\"bookmark\" id=\"mce_1_start\" data-mce-style=\"overflow:hidden;line-height:0px\" style=\"overflow:hidden;line-height:0px\"><\/span><\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"%e4%b8%8b%e3%81%8b%e3%82%89%e3%81%ae%e4%bd%8d%e7%bd%ae\"><\/span>Position from below<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p>You can set the position from the bottom. The screenshot shows a test with a setting of 100. You can set the size of the area indicated by the red line.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" width=\"1024\" height=\"260\" src=\"https:\/\/hanami-web.tokyo.jp\/blog\/wp-content\/uploads\/2021\/11\/image-97-1024x260.png\" alt=\"\" class=\"wp-image-5361\" srcset=\"https:\/\/hanami-web.tokyo.jp\/blog\/wp-content\/uploads\/2021\/11\/image-97-1024x260.png 1024w, https:\/\/hanami-web.tokyo.jp\/blog\/wp-content\/uploads\/2021\/11\/image-97-300x76.png 300w, https:\/\/hanami-web.tokyo.jp\/blog\/wp-content\/uploads\/2021\/11\/image-97-768x195.png 768w, https:\/\/hanami-web.tokyo.jp\/blog\/wp-content\/uploads\/2021\/11\/image-97-1536x390.png 1536w, https:\/\/hanami-web.tokyo.jp\/blog\/wp-content\/uploads\/2021\/11\/image-97.png 1902w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"%e3%83%9c%e3%82%bf%e3%83%b3%e3%82%b5%e3%82%a4%e3%82%ba\"><\/span>Button Size<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p>The size of the scroll to top button<\/p>\n\n\n\n<p><\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"%e3%82%a2%e3%82%a4%e3%82%b3%e3%83%b3%e3%82%b5%e3%82%a4%e3%82%ba\"><\/span>Icon Size<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p>The size of the icon in the scroll to top button.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"%e8%a7%92%e3%81%ae%e4%b8%b8%e3%81%bf\"><\/span>Corner radius<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p>By default, the button is close to a square, but you can change it to a rounded icon by setting the rounded corners.<\/p>\n\n\n\n<p>If you specify a size that is half or larger than the button size, the corners will be rounded. Since the button size is 40, I set the corner radius to 20 to make them rounded.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" width=\"1024\" height=\"434\" src=\"https:\/\/hanami-web.tokyo.jp\/blog\/wp-content\/uploads\/2021\/11\/image-98-1024x434.png\" alt=\"\" class=\"wp-image-5362\" srcset=\"https:\/\/hanami-web.tokyo.jp\/blog\/wp-content\/uploads\/2021\/11\/image-98-1024x434.png 1024w, https:\/\/hanami-web.tokyo.jp\/blog\/wp-content\/uploads\/2021\/11\/image-98-300x127.png 300w, https:\/\/hanami-web.tokyo.jp\/blog\/wp-content\/uploads\/2021\/11\/image-98-768x326.png 768w, https:\/\/hanami-web.tokyo.jp\/blog\/wp-content\/uploads\/2021\/11\/image-98-1536x651.png 1536w, https:\/\/hanami-web.tokyo.jp\/blog\/wp-content\/uploads\/2021\/11\/image-98.png 1891w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p><span data-mce-type=\"bookmark\" id=\"mce_1_start\" data-mce-style=\"overflow:hidden;line-height:0px\" style=\"overflow:hidden;line-height:0px\"><\/span><\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"%e8%89%b2%e3%81%ae%e8%a8%ad%e5%ae%9a\"><\/span>Color Settings<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p>You can set four different colors: background color, background color hover, color (icon), and color hover.<\/p>\n\n\n\n\n\n\n<div class=\"sc\"><a href=\"https:\/\/hanami-web.tokyo.jp\/blog\/en\/howto-oceanwp-setting\/\" title=\"OceanWP Theme Explanation Table of Contents\">\r\n\t<p class=\"sc-txt01\">Our site is designed using the OceanWP theme and Brizy plugin.<\/p>\r\n\t<p class=\"sc-txt01\">I have created an explanatory article on how to set it up as a reminder, so please feel free to use it as a reference!<\/p>\r\n\t<p class=\"sc-txt02\">OceanWP Explanation Index \u2192<\/p>\r\n<\/a><\/div>","protected":false},"excerpt":{"rendered":"<p>WordPress\u7121\u6599\u30c6\u30fc\u30deOceanWP\u3067\u306eTOP\u3078\u623b\u308b\u30dc\u30bf\u30f3\u306e\u8a2d\u5b9a\u65b9\u6cd5\u3092\u89e3\u8aac\u3057\u307e\u3059\u3002 \u30da\u30fc\u30b8\u306e\u4e0b\u90e8\u306b\u8868\u793a\u3055\u308c\u308b\u3001TOP\u3078\u30b9\u30af\u30ed\u30fc\u30eb\u3055\u305b\u308b\u30dc\u30bf\u30f3\u3067\u3059\u3002 TOP\u3078\u30b9\u30af\u30ed\u30fc\u30eb\u8a2d\u5b9a WordPress\u30c0\u30c3\u30b7\u30e5\u30dc\u30fc\u30c9\u306e\u3010\u5916\u89b3\u3011 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":5358,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"content-type":"","_uag_custom_page_level_css":"","footnotes":""},"categories":[1486],"tags":[1487,280],"class_list":["post-5357","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-oceanwp","tag-oceanwp","tag-280"],"blocksy_meta":[],"aioseo_notices":[],"uagb_featured_image_src":{"full":["https:\/\/hanami-web.tokyo.jp\/blog\/wp-content\/uploads\/2021\/11\/image-94.png",1881,880,false],"thumbnail":["https:\/\/hanami-web.tokyo.jp\/blog\/wp-content\/uploads\/2021\/11\/image-94-150x150.png",150,150,true],"medium":["https:\/\/hanami-web.tokyo.jp\/blog\/wp-content\/uploads\/2021\/11\/image-94-300x140.png",300,140,true],"medium_large":["https:\/\/hanami-web.tokyo.jp\/blog\/wp-content\/uploads\/2021\/11\/image-94-768x359.png",768,359,true],"large":["https:\/\/hanami-web.tokyo.jp\/blog\/wp-content\/uploads\/2021\/11\/image-94-1024x479.png",1024,479,true],"1536x1536":["https:\/\/hanami-web.tokyo.jp\/blog\/wp-content\/uploads\/2021\/11\/image-94-1536x719.png",1536,719,true],"2048x2048":["https:\/\/hanami-web.tokyo.jp\/blog\/wp-content\/uploads\/2021\/11\/image-94.png",1881,880,false],"trp-custom-language-flag":["https:\/\/hanami-web.tokyo.jp\/blog\/wp-content\/uploads\/2021\/11\/image-94.png",18,8,false]},"uagb_author_info":{"display_name":"\u682a\u5f0f\u4f1a\u793eHanamiWEB \u4ee3\u8868\u53d6\u7de0\u5f79 \u677e\u6d66\u307f\u3055","author_link":"https:\/\/hanami-web.tokyo.jp\/blog\/en\/author\/hanami\/"},"uagb_comment_info":0,"uagb_excerpt":"WordPress\u7121\u6599\u30c6\u30fc\u30deOceanWP\u3067\u306eTOP\u3078\u623b\u308b\u30dc\u30bf\u30f3\u306e\u8a2d\u5b9a\u65b9\u6cd5\u3092\u89e3\u8aac\u3057\u307e\u3059\u3002 \u30da\u30fc\u30b8\u306e\u4e0b\u90e8\u306b\u8868\u793a\u3055&hellip;","brizy_media":[],"_links":{"self":[{"href":"https:\/\/hanami-web.tokyo.jp\/blog\/en\/wp-json\/wp\/v2\/posts\/5357","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/hanami-web.tokyo.jp\/blog\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/hanami-web.tokyo.jp\/blog\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/hanami-web.tokyo.jp\/blog\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/hanami-web.tokyo.jp\/blog\/en\/wp-json\/wp\/v2\/comments?post=5357"}],"version-history":[{"count":0,"href":"https:\/\/hanami-web.tokyo.jp\/blog\/en\/wp-json\/wp\/v2\/posts\/5357\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/hanami-web.tokyo.jp\/blog\/en\/wp-json\/wp\/v2\/media\/5358"}],"wp:attachment":[{"href":"https:\/\/hanami-web.tokyo.jp\/blog\/en\/wp-json\/wp\/v2\/media?parent=5357"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/hanami-web.tokyo.jp\/blog\/en\/wp-json\/wp\/v2\/categories?post=5357"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/hanami-web.tokyo.jp\/blog\/en\/wp-json\/wp\/v2\/tags?post=5357"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}