{"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":"2024-09-05T15:18:23","modified_gmt":"2024-09-05T06:18:23","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>\u8868\u984c\u901a\u308a\u3001\u30ab\u30c6\u30b4\u30ea\u30da\u30fc\u30b8\u3084\u30bf\u30b0\u30da\u30fc\u30b8\u306e\u30bf\u30a4\u30c8\u30eb\u306eH1\u3092Div\u306b\u5909\u66f4\u3059\u308b\u30ab\u30b9\u30bf\u30de\u30a4\u30ba\u3067\u3059\u3002<\/p>\n\n\n\n<p>\u81ea\u5206\u3067H1\u3092\u8a2d\u5b9a\u3057\u305f\u3044\u4eba\u306f\u975e\u8868\u793a\u306b\u3057\u305f\u3044\u3068\u3044\u3046\u3053\u3068\u3067\u3001\u30c7\u30fc\u30bf\u69cb\u9020\u3092\u5909\u66f4\u3057\u3066\u3042\u3052\u307e\u3059\u3002<\/p>\n\n\n\n<p>\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>\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=\"\" 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>\u3084\u308a\u65b9\u306f\u7c21\u5358\u3067functions.php\u306b\u4e0b\u8a18\u306e\u30b3\u30fc\u30c9\u3092\u633f\u5165\u3059\u308b\u3060\u3051\u3067\u3059\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">functions.php<\/h3>\n\n\n\n<p>\u5916\u89b3 \uff1e \u30c6\u30fc\u30de\u30a8\u30c7\u30a3\u30bf\u306efunctions.php\u306b\u30b3\u30fc\u30c9\u3092\u633f\u5165\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<p class=\"is-style-icon_pen\">\u30a8\u30e9\u30fc\u304c\u6016\u3044\u4eba\u306fCode Snippets\u306e\u30d7\u30e9\u30b0\u30a4\u30f3\u304b\u3089\u633f\u5165\u3059\u308b\u3053\u3068\u3092\u304a\u3059\u3059\u3081\u3057\u307e\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        $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\u3068\u30bf\u30b0\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>\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>\u30bf\u30b0\u306e\u5834\u5408\u306f<code>is_tag()<\/code><\/p>\n\n\n\n<p>\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<h3 class=\"wp-block-heading\">\u78ba\u8a8d<\/h3>\n\n\n\n<p>\u30b3\u30fc\u30c9\u3092\u5165\u308c\u308b\u3068\u30bf\u30a4\u30c8\u30eb\u90e8\u5206\u306e\u592a\u6587\u5b57\u304c\u306a\u304f\u306a\u308a\u3001Div\u306e\u69cb\u9020\u306b\u306a\u3063\u3066\u3044\u308b\u3053\u3068\u3092\u78ba\u8a8d\u3067\u304d\u307e\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=\"\" 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\n<h2 class=\"wp-block-heading\">\u307e\u3068\u3081<\/h2>\n\n\n\n<p>\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>\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\/no-image-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\">SWELL\u306e\u5834\u5408\u3001\u30a2\u30fc\u30ab\u30a4\u30d6\u30da\u30fc\u30b8\u306f\u3067\u306f\u8a18\u4e8b\u4e00\u89a7\u3057\u304b\u8868\u793a\u3055\u308c\u307e\u305b\u3093\u3002 \u30ab\u30c6\u30b4\u30ea\u30fc\u30da\u30fc\u30b8\u306e\u3088\u3046\u306b\u3001\u30bf\u30a4\u30c8\u30eb\u4e0b\u306b\u30d6\u30ed\u30b0\u30d1\u30fc\u30c4\u3092\u633f\u5165\u3057\u305f\u3044\u5834\u5408\u306f\u3001\u4ee5\u4e0b\u306e\u65b9\u6cd5\u304c\u8003\u3048\u3089\u308c\u307e&#8230;<\/span>\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t<\/div>\n\t\t<\/div>","protected":false},"excerpt":{"rendered":"<p>\u8868\u984c\u901a\u308a\u3001\u30ab\u30c6\u30b4\u30ea\u30da\u30fc\u30b8\u3084\u30bf\u30b0\u30da\u30fc\u30b8\u306e\u30bf\u30a4\u30c8\u30eb\u306eH1\u3092Div\u306b\u5909\u66f4\u3059\u308b\u30ab\u30b9\u30bf\u30de\u30a4\u30ba\u3067\u3059\u3002 \u81ea\u5206\u3067H1\u3092\u8a2d\u5b9a\u3057\u305f\u3044\u4eba\u306f\u975e\u8868\u793a\u306b\u3057\u305f\u3044\u3068\u3044\u3046\u3053\u3068\u3067\u3001\u30c7\u30fc\u30bf\u69cb\u9020\u3092\u5909\u66f4\u3057\u3066\u3042\u3052\u307e\u3059\u3002 \u3053\u3061\u3089\u306f\u30d5\u30c3\u30af\u304c\u7528\u610f\u3055\u308c\u3066\u306a\u3044\u306e\u3067\u3001\u30b3\u30fc\u30c9\u306e [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":24471,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"pochipp_cv_data":"","swell_btn_cv_data":"","footnotes":""},"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":4,"href":"https:\/\/motoki-design.co.jp\/wordpress\/wp-json\/wp\/v2\/posts\/24465\/revisions"}],"predecessor-version":[{"id":24472,"href":"https:\/\/motoki-design.co.jp\/wordpress\/wp-json\/wp\/v2\/posts\/24465\/revisions\/24472"}],"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}]}}