{"id":24465,"date":"2023-11-23T03:12:05","date_gmt":"2023-11-22T18:12:05","guid":{"rendered":"https:\/\/motoki-design.co.jp\/wordpress\/?p=24465"},"modified":"2026-10-03T04:11:57","modified_gmt":"2026-10-02T19:11:57","slug":"swell-change-h1-to-div","status":"publish","type":"post","link":"https:\/\/motoki-design.co.jp\/wordpress\/swell-change-h1-to-div\/","title":{"rendered":"SWELL\u2502\u30ab\u30c6\u30b4\u30ea\u30fc\u30da\u30fc\u30b8\u306e\u8a18\u4e8b\u30bf\u30a4\u30c8\u30eb\u306eH1\u3092Div\u306b\u3059\u308b\u65b9\u6cd5"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">\u30ab\u30c6\u30b4\u30ea\u30fc\u30da\u30fc\u30b8\u306e\u30bf\u30a4\u30c8\u30eb\u3092\u3001\u898b\u305f\u76ee\u3092\u6b8b\u3057\u305f\u307e\u307eh1\u8981\u7d20\u304b\u3089div\u8981\u7d20\u306b\u5909\u66f4\u3059\u308b\u30ab\u30b9\u30bf\u30de\u30a4\u30ba\u3067\u3059\u3002\u63b2\u8f09\u30b3\u30fc\u30c9\u306e\u521d\u671f\u6761\u4ef6\u306f\u30ab\u30c6\u30b4\u30ea\u30fc\u3060\u3051\u3067\u3001\u30bf\u30b0\u306f\u6761\u4ef6\u3092\u5909\u66f4\u3057\u305f\u5834\u5408\u306b\u5bfe\u8c61\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u30bf\u30a4\u30c8\u30eb\u3092\u975e\u8868\u793a\u306b\u3059\u308b\u30b3\u30fc\u30c9\u3067\u306f\u3042\u308a\u307e\u305b\u3093\u3002\u5225\u306e\u5834\u6240\u3067\u30da\u30fc\u30b8\u3092\u8aac\u660e\u3059\u308bh1\u3092\u7528\u610f\u3059\u308b\u3068\u304d\u306b\u3001\u6a19\u6e96\u30bf\u30a4\u30c8\u30eb\u306e\u898b\u51fa\u3057\u3068\u3057\u3066\u306e\u5f79\u5272\u3092\u5916\u3057\u307e\u3059\u3002\u30bf\u30b0\u540d\u306e\u5909\u66f4\u3060\u3051\u3067\u691c\u7d22\u9806\u4f4d\u304c\u6539\u5584\u3059\u308b\u3068\u306f\u9650\u308a\u307e\u305b\u3093\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u3053\u3061\u3089\u306f\u30d5\u30c3\u30af\u304c\u7528\u610f\u3055\u308c\u3066\u306a\u3044\u306e\u3067\u3001\u30b3\u30fc\u30c9\u306e\u4e0a\u66f8\u304d\u3067\u5909\u66f4\u3057\u3066\u3042\u3052\u307e\u3059\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u305d\u306e\u3084\u308a\u65b9\u3092\u89e3\u8aac\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" width=\"812\" height=\"416\" src=\"https:\/\/motoki-design.co.jp\/wordpress\/wp-content\/uploads\/\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8-2024-03-05-10.03.29-812x416.png\" alt=\"\u30c6\u30fc\u30de\u30a8\u30c7\u30a3\u30bf\u30fc\u306efunctions.php\u306b\u30ab\u30b9\u30bf\u30de\u30a4\u30ba\u7528\u30b3\u30fc\u30c9\u3092\u633f\u5165\u3059\u308b\u624b\u9806\u3092\u793a\u3059\u753b\u9762\u3002\" class=\"wp-image-24466\" srcset=\"https:\/\/motoki-design.co.jp\/wordpress\/wp-content\/uploads\/\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8-2024-03-05-10.03.29-812x416.png 812w, https:\/\/motoki-design.co.jp\/wordpress\/wp-content\/uploads\/\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8-2024-03-05-10.03.29-382x196.png 382w, https:\/\/motoki-design.co.jp\/wordpress\/wp-content\/uploads\/\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8-2024-03-05-10.03.29-768x394.png 768w, https:\/\/motoki-design.co.jp\/wordpress\/wp-content\/uploads\/\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8-2024-03-05-10.03.29.png 1412w\" sizes=\"(max-width: 812px) 100vw, 812px\" \/><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">SWELL\u2502\u30ab\u30c6\u30b4\u30ea\u30fc\u30da\u30fc\u30b8\u306e\u8a18\u4e8b\u30bf\u30a4\u30c8\u30eb\u306eH1\u3092Div\u306b\u3059\u308b\u65b9\u6cd5<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">\u5b50\u30c6\u30fc\u30de\u306efunctions.php\u3067\u3001\u89aa\u30c6\u30fc\u30de\u304c\u540c\u540d\u306e\u95a2\u6570\u3092\u5b9a\u7fa9\u3059\u308b\u524d\u306b\u8aad\u307f\u8fbc\u307e\u305b\u307e\u3059\u3002\u3059\u3067\u306b\u540c\u540d\u95a2\u6570\u304c\u3042\u308b\u74b0\u5883\u3067\u306f\u3001\u63b2\u8f09\u30b3\u30fc\u30c9\u306efunction_exists\u306b\u3088\u308b\u5224\u5b9a\u3067\u7f6e\u304d\u63db\u3048\u304c\u5b9f\u884c\u3055\u308c\u307e\u305b\u3093\u3002\u8907\u6570\u306e\u4e0a\u66f8\u304d\u30b3\u30fc\u30c9\u3092\u91cd\u306d\u306a\u3044\u3067\u304f\u3060\u3055\u3044\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">functions.php<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">\u5916\u89b3 \uff1e \u30c6\u30fc\u30de\u30d5\u30a1\u30a4\u30eb\u30a8\u30c7\u30a3\u30bf\u30fc\u3067\u5b50\u30c6\u30fc\u30de\uff08SWELL CHILD\uff09\u306efunctions.php\u3092\u9078\u3073\u3001\u672b\u5c3e\u306b\u30b3\u30fc\u30c9\u3092\u633f\u5165\u3057\u307e\u3059\u3002\u4f5c\u696d\u524d\u306b\u5fc5\u305afunctions.php\u3092\u30d0\u30c3\u30af\u30a2\u30c3\u30d7\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Code Snippets\u3092\u4f7f\u3046\u5834\u5408\u3082\u3001\u89aa\u30c6\u30fc\u30de\u304c\u540c\u540d\u95a2\u6570\u3092\u5b9a\u7fa9\u3059\u308b\u524d\u306b\u3001\u3053\u306ePHP\u304c\u5b9f\u884c\u3055\u308c\u308b\u8a2d\u5b9a\u3067\u3042\u308b\u3053\u3068\u3092\u78ba\u8a8d\u3057\u307e\u3059\u3002\u5b50\u30c6\u30fc\u30de\u306efunctions.php\u3068\u30b9\u30cb\u30da\u30c3\u30c8\u306e\u4e21\u65b9\u306b\u306f\u767b\u9332\u3057\u307e\u305b\u3093\u3002init\u3084after_setup_theme\u306e\u51e6\u7406\u5185\u3078\u95a2\u6570\u5b9a\u7fa9\u3092\u79fb\u3059\u3068\u3001\u89aa\u30c6\u30fc\u30de\u306e\u5b9a\u7fa9\u304c\u5148\u306b\u8aad\u307f\u8fbc\u307e\u308c\u308b\u305f\u3081\u3001\u3053\u306e\u65b9\u6cd5\u3067\u306f\u7f6e\u304d\u63db\u3048\u3089\u308c\u307e\u305b\u3093\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        $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;\n\n        \/\/ \u30b5\u30d6\u30bf\u30a4\u30c8\u30eb\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\n        \/\/ \u65e7\u30d0\u30fc\u30b8\u30e7\u30f3\u3067\u306fh1\u306e\u4e2d\u3060\u3051\u51fa\u529b\u3057\u3066\u305f\n        if ( $nowrap ) {\n            echo wp_kses( $title, SWELL_Theme::$allowed_text_html );\n            return;\n        }\n\n        \/\/ \u5148\u306b\u30a8\u30b9\u30b1\u30fc\u30d7\n        $title = wp_kses( $title, SWELL_Theme::$allowed_text_html );\n\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        \/\/ \u30bf\u30b0\u306e\u9078\u629e\uff08\u30ab\u30c6\u30b4\u30ea\u30fc\u30da\u30fc\u30b8\u3067\u306fdiv\u3092\u4f7f\u7528\uff09\n        $tag = is_category()  ? &#39;div&#39; : &#39;h1&#39;;\n\n        if ( $title_style ) {\n            echo &#39;&lt;&#39; . $tag . &#39; class=&quot;c-pageTitle&quot; data-style=&quot;&#39; . esc_attr( $title_style ) . &#39;&quot;&gt;&#39; . $title . &#39;&lt;\/&#39; . $tag . &#39;&gt;&#39;;\n        } else {\n            echo &#39;&lt;&#39; . $tag . &#39; class=&quot;c-pageTitle&quot;&gt;&#39; . $title . &#39;&lt;\/&#39; . $tag . &#39;&gt;&#39;;\n        }\n    }\nendif;\n<\/code><\/pre><\/div>\n\n\n\n<p class=\"wp-block-paragraph\">\u3000\u4e0a\u8a18\u306f<code>is_category()<\/code>\u3068\u30ab\u30c6\u30b4\u30ea\u30da\u30fc\u30b8\u3060\u3051\u3092\u5bfe\u8c61\u306b\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u30bf\u30b0\u306e\u5834\u5408\u306f<code>is_tag()<\/code><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u4e21\u65b9\u3068\u3082\u306e\u5834\u5408\u306f<code>is_category() || is_tag()<\/code>\u3068\u8a18\u8ff0\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u3053\u306e\u30b3\u30fc\u30c9\u306fSWELL\u672c\u4f53\u306e\u95a2\u6570\u3092\u4e38\u3054\u3068\u7f6e\u304d\u63db\u3048\u307e\u3059\u3002\u305d\u306e\u305f\u3081\u3001SWELL\u306e\u30a2\u30c3\u30d7\u30c7\u30fc\u30c8\u3067\u5143\u306e\u95a2\u6570\u304c\u5909\u308f\u3063\u3066\u3082\u3001\u305d\u306e\u5909\u66f4\u306f\u53cd\u6620\u3055\u308c\u307e\u305b\u3093\u3002\u30a2\u30c3\u30d7\u30c7\u30fc\u30c8\u5f8c\u306f\u30bf\u30a4\u30c8\u30eb\u306e\u8868\u793a\u3092\u78ba\u8a8d\u3057\u3066\u304f\u3060\u3055\u3044\u3002\u5143\u306b\u623b\u3059\u5834\u5408\u306f\u3001\u8ffd\u52a0\u3057\u305f\u30b3\u30fc\u30c9\u3092\u524a\u9664\u3057\u3066\u30ad\u30e3\u30c3\u30b7\u30e5\u3092\u30af\u30ea\u30a2\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">\u78ba\u8a8d<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">\u958b\u767a\u8005\u30c4\u30fc\u30eb\u3067\u30ab\u30c6\u30b4\u30ea\u30fc\u306e\u6a19\u6e96\u30bf\u30a4\u30c8\u30eb\u304cdiv\u306b\u5909\u308f\u308a\u3001\u5225\u9014\u8a2d\u7f6e\u3057\u305fh1\u304c\u30da\u30fc\u30b8\u5185\u5bb9\u3092\u8868\u3057\u3066\u3044\u308b\u3053\u3068\u3092\u78ba\u8a8d\u3057\u3066\u304f\u3060\u3055\u3044\u3002\u592a\u5b57\u306a\u3069\u306e\u898b\u305f\u76ee\u306fCSS\u306b\u4f9d\u5b58\u3059\u308b\u305f\u3081\u3001\u30bf\u30b0\u5909\u66f4\u3060\u3051\u3067\u6d88\u3048\u308b\u3068\u306f\u9650\u308a\u307e\u305b\u3093\u3002\u30bf\u30b0\u30fb\u56fa\u5b9a\u30da\u30fc\u30b8\u30fb\u691c\u7d22\u7d50\u679c\u306f\u521d\u671f\u6761\u4ef6\u306e\u5bfe\u8c61\u5916\u3067\u3059\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" width=\"812\" height=\"503\" src=\"https:\/\/motoki-design.co.jp\/wordpress\/wp-content\/uploads\/\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8-2024-03-05-10.09.07-812x503.png\" alt=\"\u30b3\u30fc\u30c9\u8ffd\u52a0\u5f8c\u306b\u30ab\u30c6\u30b4\u30ea\u30fc\u30da\u30fc\u30b8\u306e\u30bf\u30a4\u30c8\u30eb\u90e8\u5206\u304cDiv\u69cb\u9020\u3078\u5909\u66f4\u3055\u308c\u305f\u3053\u3068\u3092\u78ba\u8a8d\u3059\u308b\u753b\u9762\u3002\" class=\"wp-image-24467\" srcset=\"https:\/\/motoki-design.co.jp\/wordpress\/wp-content\/uploads\/\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8-2024-03-05-10.09.07-812x503.png 812w, https:\/\/motoki-design.co.jp\/wordpress\/wp-content\/uploads\/\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8-2024-03-05-10.09.07-382x237.png 382w, https:\/\/motoki-design.co.jp\/wordpress\/wp-content\/uploads\/\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8-2024-03-05-10.09.07-768x475.png 768w, https:\/\/motoki-design.co.jp\/wordpress\/wp-content\/uploads\/\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8-2024-03-05-10.09.07.png 1108w\" sizes=\"(max-width: 812px) 100vw, 812px\" \/><\/figure>\n\n\n<h2 class=\"wp-block-heading\">\u5909\u66f4\u3055\u308c\u306a\u3044\u3068\u304d\u306f\u8aad\u307f\u8fbc\u307f\u9806\u3092\u78ba\u8a8d\u3059\u308b<\/h2>\n<p class=\"wp-block-paragraph\">\u30ab\u30c6\u30b4\u30ea\u30fc\u306e\u6a19\u6e96\u30bf\u30a4\u30c8\u30eb\u304ch1\u306e\u307e\u307e\u306a\u3089\u3001\u307e\u305a\u30b3\u30fc\u30c9\u306e\u767b\u9332\u5834\u6240\u3068\u5b9f\u884c\u6642\u70b9\u3092\u78ba\u8a8d\u3057\u307e\u3059\u3002\u63b2\u8f09\u30b3\u30fc\u30c9\u306ffunction_exists\u3067\u4e8c\u91cd\u5b9a\u7fa9\u3092\u9632\u3050\u305f\u3081\u3001\u5148\u306b\u540c\u540d\u95a2\u6570\u304c\u5b9a\u7fa9\u3055\u308c\u3066\u3044\u308b\u3068\u3001\u30a8\u30e9\u30fc\u3092\u51fa\u3055\u305a\u306b\u5143\u306e\u95a2\u6570\u3092\u4f7f\u3044\u7d9a\u3051\u307e\u3059\u3002\u30ad\u30e3\u30c3\u30b7\u30e5\u3092\u6d88\u3059\u3060\u3051\u3067\u306f\u3001\u3053\u306e\u8aad\u307f\u8fbc\u307f\u9806\u306e\u554f\u984c\u306f\u89e3\u6c7a\u3057\u307e\u305b\u3093\u3002<\/p>\n<figure class=\"wp-block-table\"><table><thead><tr><th>\u767b\u9332\u6642\u70b9<\/th><th>\u5b9fWordPress\u30fbSWELL\u3067\u306e\u7d50\u679c<\/th><\/tr><\/thead><tbody><tr><td>\u89aa\u30c6\u30fc\u30de\u306e\u8aad\u307f\u8fbc\u307f\u524d<\/td><td>\u30ab\u30c6\u30b4\u30ea\u30fc\u306e\u6a19\u6e96\u30bf\u30a4\u30c8\u30eb\u304cdiv\u306b\u306a\u308b<\/td><\/tr><tr><td>\u89aa\u30c6\u30fc\u30de\u306e\u8aad\u307f\u8fbc\u307f\u5f8c<\/td><td>\u5143\u306eh1\u304c\u6b8b\u308b<\/td><\/tr><\/tbody><\/table><\/figure>\n<p class=\"wp-block-paragraph\">WordPress 7.1.2\u30fbSWELL 2.19.0\u3067\u4e0a\u306e2\u901a\u308a\u3092\u5b9f\u884c\u3057\u3066\u78ba\u8a8d\u3057\u307e\u3057\u305f\u3002\u30d7\u30e9\u30b0\u30a4\u30f3\u306e\u5b9f\u884c\u30e2\u30fc\u30c9\u3084\u4f75\u7528\u30b3\u30fc\u30c9\u3054\u3068\u306e\u8aad\u307f\u8fbc\u307f\u9806\u306f\u5c0e\u5165\u5148\u3067\u78ba\u8a8d\u3057\u3066\u304f\u3060\u3055\u3044\u3002\u30bf\u30a4\u30c8\u30eb\u306e\u6587\u8a00\u3084\u5185\u5074\u306eHTML\u3092\u5909\u3048\u308b\u5834\u5408\u3082\u3001\u307e\u305a\u30ab\u30c6\u30b4\u30ea\u30fc\u3060\u3051\u306b\u9069\u7528\u3055\u308c\u3001\u30bf\u30b0\u30fb\u691c\u7d22\u7d50\u679c\u306e\u898b\u51fa\u3057\u304c\u6b8b\u308b\u3053\u3068\u3092\u78ba\u8a8d\u3057\u307e\u3059\u3002<\/p>\n<h2 class=\"wp-block-heading\">\u30ab\u30c6\u30b4\u30ea\u30fc\u3068\u8457\u8005\u4e00\u89a7\u3092\u6bd4\u3079\u308b<\/h2>\n<p class=\"wp-block-paragraph\">\u63b2\u8f09\u30b3\u30fc\u30c9\u3092\u30c6\u30fc\u30de\u306e\u30d7\u30e9\u30ac\u30d6\u30eb\u95a2\u6570\u3088\u308a\u5148\u306b\u8aad\u307f\u8fbc\u3093\u3060\u5b9fSWELL 2.19.0\u3067\u3001\u30ab\u30c6\u30b4\u30ea\u30fc\u306ec-pageTitle\u304cdiv\u306b\u306a\u308a\u3001\u8868\u793a\u30c6\u30ad\u30b9\u30c8\u3068\u6295\u7a3f\u4e00\u89a7\u304c\u6b8b\u308b\u3053\u3068\u3092\u78ba\u8a8d\u3057\u307e\u3057\u305f\u3002\u8457\u8005\u4e00\u89a7\u306ec-pageTitle\u306fh1\u306e\u307e\u307e\u3067\u3059\u3002<\/p>\n<p class=\"wp-block-paragraph\">PC\u5e451280px\u3068\u30b9\u30de\u30db\u5e45390px\u3067\u30ab\u30c6\u30b4\u30ea\u30fc\u753b\u9762\u3092\u78ba\u8a8d\u3057\u307e\u3057\u305f\u3002\u4e0b\u306e\u753b\u50cf\u306f\u30b9\u30de\u30db\u5e45\u3067\u3059\u3002\u30bf\u30b0\u3092\u5909\u3048\u3066\u3082\u3001\u30bf\u30a4\u30c8\u30eb\u306e\u898b\u305f\u76ee\u3092\u6d88\u3059\u30b3\u30fc\u30c9\u306b\u306f\u306a\u308a\u307e\u305b\u3093\u3002<\/p>\n<p class=\"wp-block-paragraph\">\u81ea\u5206\u306e\u30b5\u30a4\u30c8\u3067\u306f\u30ab\u30c6\u30b4\u30ea\u30fc\u3068\u8457\u8005\u30fb\u30bf\u30b0\u306a\u3069\u306e\u5bfe\u8c61\u5916\u30da\u30fc\u30b8\u3092\u958b\u304d\u3001\u958b\u767a\u8005\u30c4\u30fc\u30eb\u3067c-pageTitle\u306e\u30bf\u30b0\u3092\u6bd4\u8f03\u3057\u3066\u304f\u3060\u3055\u3044\u3002\u5909\u66f4\u3092\u623b\u3059\u5834\u5408\u306f\u8ffd\u52a0\u95a2\u6570\u3092\u5916\u3057\u307e\u3059\u3002\u5148\u306b\u89aa\u30c6\u30fc\u30de\u5074\u306e\u95a2\u6570\u304c\u5b9a\u7fa9\u3055\u308c\u305f\u74b0\u5883\u3067\u306f\u3001\u3053\u306e\u4f8b\u306f\u4e0a\u66f8\u304d\u3055\u308c\u307e\u305b\u3093\u3002<\/p>\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" width=\"375\" height=\"322\" src=\"https:\/\/motoki-design.co.jp\/wordpress\/wp-content\/uploads\/waza-branding-native-20261002-category-mobile.jpg\" alt=\"\u30ab\u30c6\u30b4\u30ea\u30fc\u306e\u30bf\u30a4\u30c8\u30eb\u3092div\u306b\u3057\u3066\u672c\u6587\u4e00\u89a7\u3092\u7dad\u6301\u3057\u305f\u5b9fSWELL\u753b\u9762\" class=\"wp-image-30400\"\/><figcaption class=\"wp-element-caption\">2026\u5e7410\u67082\u65e5\u3001\u9694\u96e2WordPress\u3067\u64ae\u5f71\u3057\u305f\u5b9f\u753b\u9762\u3067\u3059\u3002<\/figcaption><\/figure><h2 class=\"wp-block-heading\">Code Snippets\u3067\u5b9f\u884c\u7bc4\u56f2\u3092\u4fdd\u5b58\u3057\u3066\u78ba\u8a8d\u3059\u308b<\/h2>\n<p class=\"wp-block-paragraph\">2026\u5e7410\u67083\u65e5\u3001WordPress 7.1.2\u30fbSWELL 2.19.0\u306e\u9694\u96e2\u74b0\u5883\u306b<a href=\"https:\/\/wordpress.org\/plugins\/code-snippets\/\">Code Snippets\u306e\u516c\u5f0f\u7121\u6599\u7248<\/a>3.10.2\u3092\u8ffd\u52a0\u3057\u3001\u63b2\u8f09PHP\u3092\u305d\u306e\u307e\u307e\u4fdd\u5b58\u3057\u307e\u3057\u305f\u3002<\/p>\n<p class=\"wp-block-paragraph\">\u7ba1\u7406\u753b\u9762\u306e\u65b0\u898f\u30b9\u30cb\u30da\u30c3\u30c8\u3067PHP\u3092\u9078\u3073\u3001Location\u3092<code>Only run on site front-end<\/code>\u3001Priority\u3092\u521d\u671f\u5024\u306e<code>10<\/code>\u306b\u3057\u3066<code>Save and Activate<\/code>\u3067\u6709\u52b9\u5316\u3057\u307e\u3057\u305f\u3002<\/p>\n<p class=\"wp-block-paragraph\">\u3053\u306e\u5b9f\u884c\u7bc4\u56f2\u3067\u30ab\u30c6\u30b4\u30ea\u30fc\u306e\u6a19\u6e96\u30bf\u30a4\u30c8\u30eb\u304cdiv\u306b\u306a\u308a\u3001\u5bfe\u8c61\u5916\u306e\u56fa\u5b9a\u30da\u30fc\u30b8\u306e\u30bf\u30a4\u30c8\u30eb\u306fh1\u306e\u307e\u307e\u8868\u793a\u3055\u308c\u307e\u3057\u305f\u3002<\/p>\n<p class=\"wp-block-paragraph\">\u63b2\u8f09\u30b3\u30fc\u30c9\u306e\u30ab\u30c6\u30b4\u30ea\u30fc\u5224\u5b9a\u306f\u30bf\u30a4\u30c8\u30eb\u3092\u63cf\u753b\u3059\u308b\u3068\u304d\u306b\u884c\u3046\u306e\u3067\u3001\u7ba1\u7406\u753b\u9762\u3067\u30ab\u30c6\u30b4\u30ea\u30fc\u5225\u306e\u6709\u6599\u6761\u4ef6\u3092\u8ffd\u52a0\u3059\u308b\u5fc5\u8981\u306f\u3042\u308a\u307e\u305b\u3093\u3002<\/p>\n<p class=\"wp-block-paragraph\"><code>Only run in administration area<\/code>\u306f\u516c\u958b\u753b\u9762\u3078\u306e\u9069\u7528\u5148\u3068\u3057\u3066\u9078\u3073\u307e\u305b\u3093\u3002<\/p>\n<p class=\"wp-block-paragraph\">\u505c\u6b62\u3059\u308b\u5834\u5408\u306f\u540c\u3058\u7de8\u96c6\u753b\u9762\u306e<code>Save and Deactivate<\/code>\u3092\u62bc\u3057\u307e\u3059\u3002<\/p>\n<p class=\"wp-block-paragraph\">\u4eca\u56de\u306e\u691c\u8a3c\u3067\u306f\u505c\u6b62\u5f8c\u306b\u30ab\u30c6\u30b4\u30ea\u30fc\u3092\u958b\u304d\u76f4\u3057\u3001\u6a19\u6e96\u30bf\u30a4\u30c8\u30eb\u304ch1\u3078\u623b\u308b\u3053\u3068\u3082\u78ba\u8a8d\u3057\u307e\u3057\u305f\u3002<\/p>\n<p class=\"wp-block-paragraph\">\u5b50\u30c6\u30fc\u30de\u3068\u540c\u3058\u95a2\u6570\u3092\u4e8c\u91cd\u306b\u767b\u9332\u3059\u308b\u3068\u5148\u306b\u8aad\u307f\u8fbc\u307e\u308c\u305f\u5b9a\u7fa9\u304c\u4f7f\u308f\u308c\u308b\u305f\u3081\u3001\u30b3\u30fc\u30c9\u306e\u8a2d\u7f6e\u5148\u306f\u4e00\u65b9\u306b\u63c3\u3048\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<p class=\"wp-block-paragraph\">\u3053\u306e\u30d7\u30e9\u30b0\u30a4\u30f3\u7d4c\u7531\u306e\u8ffd\u52a0\u691c\u8a3c\u306fPC\u3067\u884c\u3063\u3066\u304a\u308a\u3001\u5c0e\u5165\u5148\u306e\u4f75\u7528\u30b3\u30fc\u30c9\u3068\u30b9\u30de\u30db\u8868\u793a\u306f\u5225\u9014\u78ba\u8a8d\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<figure class=\"wp-block-image size-full\"><a href=\"https:\/\/motoki-design.co.jp\/wordpress\/wp-content\/uploads\/waza-snippet-title-front-20261003.jpg\"><img decoding=\"async\" width=\"1265\" height=\"712\" src=\"https:\/\/motoki-design.co.jp\/wordpress\/wp-content\/uploads\/waza-snippet-title-front-20261003.jpg\" alt=\"Code Snippets\u3067\u516c\u958b\u753b\u9762\u306e\u307f\u306e\u5b9f\u884c\u7bc4\u56f2\u3092\u4fdd\u5b58\u3057\u6709\u52b9\u5316\u3057\u305f\u753b\u9762\" class=\"wp-image-30523\" srcset=\"https:\/\/motoki-design.co.jp\/wordpress\/wp-content\/uploads\/waza-snippet-title-front-20261003.jpg 1265w, https:\/\/motoki-design.co.jp\/wordpress\/wp-content\/uploads\/waza-snippet-title-front-20261003-382x215.jpg 382w, https:\/\/motoki-design.co.jp\/wordpress\/wp-content\/uploads\/waza-snippet-title-front-20261003-812x457.jpg 812w, https:\/\/motoki-design.co.jp\/wordpress\/wp-content\/uploads\/waza-snippet-title-front-20261003-768x432.jpg 768w\" sizes=\"(max-width: 1265px) 100vw, 1265px\" \/><\/a><figcaption class=\"wp-element-caption\">Location\u3092\u30d5\u30ed\u30f3\u30c8\u30a8\u30f3\u30c9\u306b\u3057\u3066\u4fdd\u5b58\u30fb\u6709\u52b9\u5316\u3057\u305f\u5b9f\u753b\u9762\uff082026\/10\/03\u64ae\u5f71\u3001Code Snippets 3.10.2\u3001\u9694\u96e2\u74b0\u5883\uff09<\/figcaption><\/figure>\n<h2 class=\"wp-block-heading\">\u307e\u3068\u3081<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">\u4eca\u56de\u306f\u30bf\u30a4\u30c8\u30eb\u306e\u69cb\u9020\u3092\u5909\u3048\u307e\u3057\u305f\u304c\u3001\u3053\u306e\u90e8\u5206\u306e\u6539\u4fee\u306f\u30d6\u30ed\u30b0\u30d1\u30fc\u30c4\u3092\u633f\u5165\u3057\u305f\u308a\u3068\u8272\u3005\u5fdc\u7528\u304c\u52b9\u304f\u30ab\u30b9\u30bf\u30de\u30a4\u30ba\u3067\u3059\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u4ee5\u524d\u306f\u30a2\u30fc\u30ab\u30a4\u30d6\u30da\u30fc\u30b8\u306b\u30d6\u30ed\u30b0\u30d1\u30fc\u30c4\u3092\u5165\u308c\u308b\u3088\u3046\u306b\u3057\u307e\u3057\u305f\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-achive-add-blogparts-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-achive-add-blogparts\/\">SWELL\u2502\u30a2\u30fc\u30ab\u30a4\u30d6\u30da\u30fc\u30b8\u306b\u30d6\u30ed\u30b0\u30d1\u30fc\u30c4\u3092\u633f\u5165\u3059\u308b\u65b9\u6cd5<\/a>\n\t\t\t\t\t\t<span class=\"p-blogCard__excerpt\">\u30ab\u30b9\u30bf\u30e0\u6295\u7a3f\u30bf\u30a4\u30d7news\u306e\u4e00\u89a7\u30da\u30fc\u30b8\u3067\u3001\u30bf\u30a4\u30c8\u30eb\u3068\u8a18\u4e8b\u4e00\u89a7\u306e\u9593\u306b\u30d6\u30ed\u30b0\u30d1\u30fc\u30c4\u3092\u5165\u308c\u308b\u65b9\u6cd5\u3067\u3059\u3002news\u5c02\u7528\u306e\u5b50\u30c6\u30fc\u30de\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u3092\u4f5c\u308a\u3001\u4ed6\u306e\u30a2\u30fc\u30ab\u30a4\u30d6\u3084\u56fa\u5b9a\u30da\u30fc\u30b8&#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<p class=\"wp-block-paragraph\">\u3053\u306e\u8a18\u4e8b\u3067\u7d39\u4ecb\u3057\u3066\u3044\u308b\u30b3\u30fc\u30c9\u306f\u3001GitHub\u306e<a href=\"https:\/\/github.com\/MOTOKI-LLC\/WAZA-code\/tree\/main\/swell-change-h1-to-div\">MOTOKI-LLC\/WAZA-code<\/a>\u306b\u3082\u307e\u3068\u3081\u3066\u3044\u307e\u3059\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u30ab\u30c6\u30b4\u30ea\u30fc\u30da\u30fc\u30b8\u306e\u30bf\u30a4\u30c8\u30eb\u3092\u3001\u898b\u305f\u76ee\u3092\u6b8b\u3057\u305f\u307e\u307eh1\u8981\u7d20\u304b\u3089div\u8981\u7d20\u306b\u5909\u66f4\u3059\u308b\u30ab\u30b9\u30bf\u30de\u30a4\u30ba\u3067\u3059\u3002\u63b2\u8f09\u30b3\u30fc\u30c9\u306e\u521d\u671f\u6761\u4ef6\u306f\u30ab\u30c6\u30b4\u30ea\u30fc\u3060\u3051\u3067\u3001\u30bf\u30b0\u306f\u6761\u4ef6\u3092\u5909\u66f4\u3057\u305f\u5834\u5408\u306b\u5bfe\u8c61\u306b\u306a\u308a\u307e\u3059\u3002 \u30bf\u30a4\u30c8\u30eb\u3092\u975e\u8868\u793a\u306b\u3059\u308b\u30b3\u30fc\u30c9\u3067\u306f\u3042\u308a\u307e [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":24471,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"swell_btn_cv_data":"","book_review_data":"","footnotes":"","ssp_meta_title":"SWELL h1\u30ab\u30b9\u30bf\u30de\u30a4\u30ba\u3067div\u306b\u5909\u66f4\u3059\u308b\u65b9\u6cd5","ssp_meta_description":"WordPress\u30c6\u30fc\u30deSWELL\u306e\u30ab\u30c6\u30b4\u30ea\u30fc\u3084\u30bf\u30b0\u30da\u30fc\u30b8\u3067\u3001\u30bf\u30a4\u30c8\u30eb\u306eh1\u30bf\u30b0\u3092div\u3078\u5909\u66f4\u3059\u308b\u30ab\u30b9\u30bf\u30de\u30a4\u30ba\u3092\u89e3\u8aac\u3002functions.php\u306b\u8a18\u8ff0\u3059\u308b\u4e0a\u66f8\u304d\u7528\u30b3\u30fc\u30c9\u3084\u3001Code Snippets\u30d7\u30e9\u30b0\u30a4\u30f3\u3092\u4f7f\u3046\u633f\u5165\u624b\u9806\u3092\u63b2\u8f09\u3057\u3066\u3044\u307e\u3059\u3002"},"categories":[110],"tags":[],"area":[],"class_list":["post-24465","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\/24465","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=24465"}],"version-history":[{"count":8,"href":"https:\/\/motoki-design.co.jp\/wordpress\/wp-json\/wp\/v2\/posts\/24465\/revisions"}],"predecessor-version":[{"id":30524,"href":"https:\/\/motoki-design.co.jp\/wordpress\/wp-json\/wp\/v2\/posts\/24465\/revisions\/30524"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/motoki-design.co.jp\/wordpress\/wp-json\/wp\/v2\/media\/24471"}],"wp:attachment":[{"href":"https:\/\/motoki-design.co.jp\/wordpress\/wp-json\/wp\/v2\/media?parent=24465"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/motoki-design.co.jp\/wordpress\/wp-json\/wp\/v2\/categories?post=24465"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/motoki-design.co.jp\/wordpress\/wp-json\/wp\/v2\/tags?post=24465"},{"taxonomy":"area","embeddable":true,"href":"https:\/\/motoki-design.co.jp\/wordpress\/wp-json\/wp\/v2\/area?post=24465"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}