{"id":26670,"date":"2024-12-28T23:59:36","date_gmt":"2024-12-28T14:59:36","guid":{"rendered":"https:\/\/motoki-design.co.jp\/wordpress\/?p=26670"},"modified":"2024-12-28T23:59:38","modified_gmt":"2024-12-28T14:59:38","slug":"swell-before-page-title","status":"publish","type":"post","link":"https:\/\/motoki-design.co.jp\/wordpress\/swell-before-page-title\/","title":{"rendered":"SWELL\u2502\u56fa\u5b9a\u8a18\u4e8b\u306e\u30bf\u30a4\u30c8\u30eb\u4e0a\u306e\u30d5\u30c3\u30af\u3092\u4f5c\u6210\u3059\u308b\u65b9\u6cd5"},"content":{"rendered":"\n<p>SWELL\u306b\u306f\u69d8\u3005\u306a\u30d5\u30c3\u30af\u304c\u3042\u308a\u307e\u3059\u304c\u3001\u56fa\u5b9a\u8a18\u4e8b\u306e\u30bf\u30a4\u30c8\u30eb\u4e0a\u306e\u30d5\u30c3\u30af\u306f\u3042\u308a\u307e\u305b\u3093\u3002<\/p>\n\n\n\n<p>\u305d\u3053\u3067\u30b3\u30fc\u30c9\u3092\u4e0a\u66f8\u304d\u3059\u308b\u3053\u3068\u3067\u30aa\u30ea\u30b8\u30ca\u30eb\u306e\u30d5\u30c3\u30af<strong>swell_before_page_title<\/strong>\u3092\u3064\u304f\u308b\u3053\u3068\u3067\u3001\u7528\u610f\u306b\u8ffd\u52a0\u3067\u304d\u308b\u3088\u3046\u306b\u3057\u3066\u307f\u307e\u3057\u305f\u3002<\/p>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-plain\"><code>do_action( &#39;swell_before_page_title&#39; ); \/\/ \u2605\u8ffd\u52a0\u3057\u305f\u30d5\u30c3\u30af<\/code><\/pre><\/div>\n\n\n\n<p>\u4e0a\u66f8\u304d\u306a\u306e\u3067\u975e\u7834\u58ca\u3067\u89aa\u30c6\u30fc\u30de\u3067\u3082\u4f7f\u3048\u307e\u3059\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image size-large is-style-border\"><img decoding=\"async\" width=\"812\" height=\"563\" src=\"https:\/\/motoki-design.co.jp\/wordpress\/wp-content\/uploads\/2024-12-28_23h49_45-812x563.png\" alt=\"\" class=\"wp-image-26671\" srcset=\"https:\/\/motoki-design.co.jp\/wordpress\/wp-content\/uploads\/2024-12-28_23h49_45-812x563.png 812w, https:\/\/motoki-design.co.jp\/wordpress\/wp-content\/uploads\/2024-12-28_23h49_45-382x265.png 382w, https:\/\/motoki-design.co.jp\/wordpress\/wp-content\/uploads\/2024-12-28_23h49_45-768x532.png 768w, https:\/\/motoki-design.co.jp\/wordpress\/wp-content\/uploads\/2024-12-28_23h49_45.png 924w\" sizes=\"(max-width: 812px) 100vw, 812px\" \/><\/figure>\n\n\n\n<p>\u305d\u306e\u5099\u5fd8\u9332\u3067\u3059\u3002<\/p>\n\n\n\n<p>\u3061\u306a\u307f\u306b\u56fa\u5b9a\u8a18\u4e8b\u30da\u30fc\u30b8\u4e0a\u90e8\u306e\u30a6\u30a3\u30b8\u30a7\u30c3\u30c8\u304c\u3042\u308b\u306e\u3067\u3001<strong>\u3053\u306e\u30ab\u30b9\u30bf\u30de\u30a4\u30ba\u81ea\u4f53\u306f\u91cd\u8981\u306a\u3082\u306e\u3067\u306f\u306a\u3044\u3067\u3059\u3002<\/strong><\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" width=\"427\" height=\"131\" src=\"https:\/\/motoki-design.co.jp\/wordpress\/wp-content\/uploads\/2024-12-28_23h57_36.png\" alt=\"\" class=\"wp-image-26672\" srcset=\"https:\/\/motoki-design.co.jp\/wordpress\/wp-content\/uploads\/2024-12-28_23h57_36.png 427w, https:\/\/motoki-design.co.jp\/wordpress\/wp-content\/uploads\/2024-12-28_23h57_36-382x117.png 382w\" sizes=\"(max-width: 427px) 100vw, 427px\" \/><\/figure>\n\n\n\n<p>\u5927\u4e8b\u306a\u306e\u306fSWELL\u306e\u30b3\u30fc\u30c9\u306e\u4e0a\u66f8\u304d\u3067\u516c\u5f0f\u3067\u7528\u610f\u3055\u308c\u3066\u306a\u3044\u5834\u6240\u306b\u30d5\u30c3\u30af\u3092\u65b0\u898f\u8a2d\u7f6e\u3067\u304d\u308b\u3068\u3044\u3046\u3053\u3068\u3067\u3059\u3002<\/p>\n\n\n\n<p>\u3044\u308d\u3044\u308dSWELL\u306e\u30ab\u30b9\u30bf\u30de\u30a4\u30ba\u306e\u5e45\u304c\u5e83\u304c\u308b\u306e\u3067\u4fbf\u5229\u3067\u3059\u3002<\/p>\n\n\n<div class=\"swell-block-postLink\">\t\t\t<div class=\"p-blogCard -internal\" data-type=\"type1\" data-onclick=\"clickLink\">\n\t\t\t\t<div class=\"p-blogCard__inner\">\n\t\t\t\t\t<span class=\"p-blogCard__caption\">\u3042\u308f\u305b\u3066\u8aad\u307f\u305f\u3044<\/span>\n\t\t\t\t\t<div class=\"p-blogCard__thumb c-postThumb\"><figure class=\"c-postThumb__figure\"><img decoding=\"async\" src=\"https:\/\/motoki-design.co.jp\/wordpress\/wp-content\/uploads\/swell-overridable-functions-382x215.jpg\" alt=\"\" class=\"c-postThumb__img u-obf-cover\" width=\"320\" height=\"180\"><\/figure><\/div>\t\t\t\t\t<div class=\"p-blogCard__body\">\n\t\t\t\t\t\t<a class=\"p-blogCard__title\" href=\"https:\/\/motoki-design.co.jp\/wordpress\/swell-overridable-functions\/\">SWELL\u2502\u4e0a\u66f8\u304d\u3067\u304d\u308b\u95a2\u6570\u30fb\u30b3\u30fc\u30c9\u307e\u3068\u308138\u9078<\/a>\n\t\t\t\t\t\t<span class=\"p-blogCard__excerpt\">SWELL\u306f\u3055\u307e\u3056\u307e\u306a\u30d5\u30c3\u30af\u304c\u7528\u610f\u3055\u308c\u3066\u3044\u3066\u3001\u30ab\u30b9\u30bf\u30de\u30a4\u30ba\u304c\u5bb9\u6613\u3067\u3059\u3002 \u3057\u304b\u3057\u4f7f\u308f\u308c\u3066\u3044\u308b\u95a2\u6570\u306e\u30b3\u30fc\u30c9\u3082\u5b9f\u306f\u4e0a\u66f8\u304d\u3067\u304d\u308b\u306e\u3067\u3001\u3055\u3089\u306b\u7d30\u304b\u3044\u30ab\u30b9\u30bf\u30de\u30a4\u30ba\u3082\u53ef\u80fd\u3067\u3059\u3002 &#8230;<\/span>\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t<\/div>\n\t\t<\/div>\n\n\n<h2 class=\"wp-block-heading\">SWELL\u3067\u56fa\u5b9a\u8a18\u4e8b\u306e\u30bf\u30a4\u30c8\u30eb\u4e0a\u306e\u30d5\u30c3\u30af\u3092\u4f5c\u6210\u3059\u308b\u65b9\u6cd5<\/h2>\n\n\n\n<p>\u3084\u308a\u65b9\u306f\u7c21\u5358\u3067\u3059\u3002<\/p>\n\n\n\n<p>functions.php\u306b\u30b3\u30fc\u30c9\u3092\u633f\u5165\u3059\u308b\u3060\u3051\u3067\u3059\u3002<\/p>\n\n\n\n<p>\u307e\u305a\u306f\u7ba1\u7406\u753b\u9762\u304b\u3089\u5916\u89b3 >\u3000\u30c6\u30fc\u30de\u30a8\u30c7\u30a3\u30bf >\u3000<strong>functions.php<\/strong>\u306b\u4e0b\u8a18\u306e\u30b3\u30fc\u30c9\u3092\u633f\u5165\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n\n\n\n<p class=\"is-style-icon_pen\">\u203b\u3061\u306a\u307f\u306b\u30b3\u30fc\u30c9\u30b9\u30cb\u30da\u30c3\u30c8\u306b\u633f\u5165\u3059\u308b\u3068\u30b3\u30fc\u30c9\u306e\u9806\u756a\u7684\u306b\u5148\u306b\u8aad\u307f\u8fbc\u307e\u308c\u3066\u3057\u307e\u3046\u306e\u3067\u3001\u3046\u307e\u304f\u3044\u304b\u306a\u3044\u3067\u3059\u3002<\/p>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-php\" data-lang=\"PHP\"><code>if ( ! function_exists( &#39;swl_parts__page_title&#39; ) ) :\n    function swl_parts__page_title( $args ) {\n\n        do_action( &#39;swell_before_page_title&#39; ); \/\/ \u2605\u8ffd\u52a0\u3057\u305f\u30d5\u30c3\u30af\n        \n        $title     = $args[&#39;title&#39;] ?? &#39;&#39;;\n        $subtitle  = $args[&#39;subtitle&#39;] ?? &#39;&#39;;\n        $has_inner = $args[&#39;has_inner&#39;] ?? false;\n        $nowrap    = $args[&#39;nowrap&#39;] ?? false; \/\/ \u5f8c\u65b9\u4e92\u63db\u7528\n\n        if ( $subtitle ) {\n            $title .= &#39;&lt;small class=&quot;c-pageTitle__subTitle u-fz-14&quot;&gt;\u2013 &#39; . $subtitle . &#39; \u2013&lt;\/small&gt;&#39;;\n        }\n        if ( $nowrap ) {\n            echo wp_kses( $title, \\SWELL_Theme::$allowed_text_html );\n            return;\n        }\n\n        $title = wp_kses( $title, \\SWELL_Theme::$allowed_text_html );\n        $title_style = &#39;&#39;;\n        if ( $has_inner ) {\n            $title       = &#39;&lt;span class=&quot;c-pageTitle__inner&quot;&gt;&#39; . $title . &#39;&lt;\/span&gt;&#39;;\n            $title_style = is_archive() ? \\SWELL_Theme::get_setting( &#39;archive_title_style&#39; ) : \\SWELL_Theme::get_setting( &#39;page_title_style&#39; );\n        }\n\n        if ( $title_style ) {\n            echo &#39;&lt;h1 class=&quot;c-pageTitle&quot; data-style=&quot;&#39; . esc_attr( $title_style ) . &#39;&quot;&gt;&#39; . $title . &#39;&lt;\/h1&gt;&#39;;\n        } else {\n            echo &#39;&lt;h1 class=&quot;c-pageTitle&quot;&gt;&#39; . $title . &#39;&lt;\/h1&gt;&#39;;\n        }\n    }\nendif;\n\n\n\/\/ \u30d5\u30c3\u30af\u306b\u633f\u5165\u3057\u305f\u3044\u5185\u5bb9\nfunction add_something_after_nav() {\n    echo &#39;&lt;p style=&quot;text-align: center; color: red;&quot;&gt;\u56fa\u5b9a\u8a18\u4e8b\u306e\u4e0b\u306b\u8868\u793a\u3057\u305f\u3044\u5185\u5bb9&lt;\/p&gt;&#39;;\n}\nadd_action( &#39;swell_before_page_title&#39;, &#39;add_something_after_nav&#39; );\n<\/code><\/pre><\/div>\n\n\n\n<p>\u5b9f\u969b\u306b\u306f\u4e0b\u8a18\u306e\u3088\u3046\u306b\u8868\u793a\u3055\u308c\u307e\u3059\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image size-large is-style-border\"><img decoding=\"async\" width=\"812\" height=\"563\" src=\"https:\/\/motoki-design.co.jp\/wordpress\/wp-content\/uploads\/2024-12-28_23h49_45-812x563.png\" alt=\"\" class=\"wp-image-26671\" srcset=\"https:\/\/motoki-design.co.jp\/wordpress\/wp-content\/uploads\/2024-12-28_23h49_45-812x563.png 812w, https:\/\/motoki-design.co.jp\/wordpress\/wp-content\/uploads\/2024-12-28_23h49_45-382x265.png 382w, https:\/\/motoki-design.co.jp\/wordpress\/wp-content\/uploads\/2024-12-28_23h49_45-768x532.png 768w, https:\/\/motoki-design.co.jp\/wordpress\/wp-content\/uploads\/2024-12-28_23h49_45.png 924w\" sizes=\"(max-width: 812px) 100vw, 812px\" \/><\/figure>\n\n\n\n<p>\u4ee5\u4e0a\u3067\u3059\u3002<\/p>\n\n\n\n\n","protected":false},"excerpt":{"rendered":"<p>SWELL\u306b\u306f\u69d8\u3005\u306a\u30d5\u30c3\u30af\u304c\u3042\u308a\u307e\u3059\u304c\u3001\u56fa\u5b9a\u8a18\u4e8b\u306e\u30bf\u30a4\u30c8\u30eb\u4e0a\u306e\u30d5\u30c3\u30af\u306f\u3042\u308a\u307e\u305b\u3093\u3002 \u305d\u3053\u3067\u30b3\u30fc\u30c9\u3092\u4e0a\u66f8\u304d\u3059\u308b\u3053\u3068\u3067\u30aa\u30ea\u30b8\u30ca\u30eb\u306e\u30d5\u30c3\u30afswell_before_page_title\u3092\u3064\u304f\u308b\u3053\u3068\u3067\u3001\u7528\u610f\u306b\u8ffd\u52a0\u3067\u304d\u308b\u3088\u3046\u306b\u3057\u3066 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":26674,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"pochipp_cv_data":"","swell_btn_cv_data":"","footnotes":""},"categories":[110],"tags":[],"area":[],"class_list":["post-26670","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-swell-customize"],"_links":{"self":[{"href":"https:\/\/motoki-design.co.jp\/wordpress\/wp-json\/wp\/v2\/posts\/26670","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/motoki-design.co.jp\/wordpress\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/motoki-design.co.jp\/wordpress\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/motoki-design.co.jp\/wordpress\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/motoki-design.co.jp\/wordpress\/wp-json\/wp\/v2\/comments?post=26670"}],"version-history":[{"count":1,"href":"https:\/\/motoki-design.co.jp\/wordpress\/wp-json\/wp\/v2\/posts\/26670\/revisions"}],"predecessor-version":[{"id":26673,"href":"https:\/\/motoki-design.co.jp\/wordpress\/wp-json\/wp\/v2\/posts\/26670\/revisions\/26673"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/motoki-design.co.jp\/wordpress\/wp-json\/wp\/v2\/media\/26674"}],"wp:attachment":[{"href":"https:\/\/motoki-design.co.jp\/wordpress\/wp-json\/wp\/v2\/media?parent=26670"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/motoki-design.co.jp\/wordpress\/wp-json\/wp\/v2\/categories?post=26670"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/motoki-design.co.jp\/wordpress\/wp-json\/wp\/v2\/tags?post=26670"},{"taxonomy":"area","embeddable":true,"href":"https:\/\/motoki-design.co.jp\/wordpress\/wp-json\/wp\/v2\/area?post=26670"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}