{"id":1502,"date":"2022-02-13T13:51:30","date_gmt":"2022-02-13T04:51:30","guid":{"rendered":"https:\/\/tecchan.jp\/swell-tips\/?p=1502"},"modified":"2022-02-13T17:58:30","modified_gmt":"2022-02-13T08:58:30","slug":"click-tap","status":"publish","type":"post","link":"https:\/\/tecchan.jp\/swell-tips\/entry\/click-tap\/","title":{"rendered":"SWELL\u306e\u30c6\u30ad\u30b9\u30c8\u672c\u6587\u3067\u3001PC\u8868\u793a\u306e\u5834\u5408\u300c\u30af\u30ea\u30c3\u30af\u300d\u30b9\u30de\u30db\u8868\u793a\u306e\u5834\u5408\u300c\u30bf\u30c3\u30d7\u300d\u3068\u8868\u793a\u3092\u5207\u308a\u66ff\u3048\u308b\u30ab\u30b9\u30bf\u30de\u30a4\u30ba"},"content":{"rendered":"\n<p>SWELL\u3067\u30d6\u30ed\u30b0\u3092\u4f5c\u6210\u3059\u308b\u969b\u3001\u30c6\u30ad\u30b9\u30c8\u672c\u6587\u3092PC\u8868\u793a\u306e\u5834\u5408\u300c\u30af\u30ea\u30c3\u30af\u300d\u3001\u30b9\u30de\u30db\u8868\u793a\u306e\u5834\u5408\u300c\u30bf\u30c3\u30d7\u300d\u3068\u8868\u793a\u3092\u5207\u308a\u66ff\u3048\u308b\u30ab\u30b9\u30bf\u30de\u30a4\u30ba\u65b9\u6cd5\u3067\u3059\u3002<\/p>\n\n\n<div class=\"p-blogParts post_content\" data-partsID=\"1517\">\n<div class=\"wp-block-group is-style-big_icon_caution\"><div class=\"wp-block-group__inner-container\">\n<p>\u81ea\u5206\u3067<code class=\"file_name\">functions.php<\/code>\u3092\u7de8\u96c6\u3059\u308b\u5834\u5408\u3084\u3001<a href=\"https:\/\/ja.wordpress.org\/plugins\/code-snippets\/\" target=\"_blank\" rel=\"noreferrer noopener\">Code Snippets\u30d7\u30e9\u30b0\u30a4\u30f3<\/a>\u3092\u4f7f\u7528\u3057\u3066\u30b3\u30fc\u30c9\u3092\u8ffd\u52a0\u3059\u308b\u5834\u5408\u3001\u30b3\u30fc\u30c9\u306e\u8ffd\u52a0\u306e\u4ed5\u65b9\u3092\u8aa4\u3063\u305f\u3068\u304d\u306bWordPress\u81ea\u4f53\u304c\u30a8\u30e9\u30fc\u304c\u767a\u751f\u3057\u3066\u3001\u30b5\u30a4\u30c8\u304c\u95b2\u89a7\u3067\u304d\u306a\u304f\u306a\u308b\u3053\u3068\u304c\u3042\u308a\u307e\u3059\u3002\u305d\u3046\u3057\u305f\u5834\u5408\u306e\u6ce8\u610f\u70b9\u3092\u4ee5\u4e0b\u306e\u8a18\u4e8b\u306b\u307e\u3068\u3081\u305f\u306e\u3067\u3001\u305c\u3072\u3054\u89a7\u304f\u3060\u3055\u3044\u3002<\/p>\n\n\n<div class=\"swell-block-postLink\">\t\t\t<a href=\"https:\/\/tecchan.jp\/entry\/210324-wptips\/#snippets\" class=\"c-blogLink -external\" data-style=\"text\">\n\t\t\t\t<!-- <i class=\"c-blogLink__icon icon-link\" role=\"presentation\"><\/i> -->\n\t\t\t\t<span class=\"c-blogLink__icon\">\n\t\t\t\t\t<svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" class=\"swl-svg-externalLink __svg\" width=\"1em\" height=\"1em\" viewBox=\"0 0 40 40\" role=\"img\" aria-hidden=\"true\" focusable=\"false\"><path d=\"M37,15V4.5C37,3.7,36.3,3,35.5,3H25c-0.8,0-1.5,0.7-1.5,1.5v0C23.5,5.3,24.2,6,25,6h6.9L18.5,19.3c-0.6,0.6-0.6,1.5,0,2.1 l0,0c0.6,0.6,1.5,0.6,2.1,0L34,8.1V15c0,0.8,0.7,1.5,1.5,1.5l0,0C36.3,16.5,37,15.8,37,15z\"\/><path d=\"M31.9,23.9v8.5c0,1.1-0.9,2-2,2h-22c-1.1,0-2-0.9-2-2v-22c0-1.1,0.9-2,2-2h8.5c0.8,0,1.5-0.7,1.5-1.5v0 c0-0.8-0.7-1.5-1.5-1.5H7.9c-2.8,0-5,2.2-5,5v22c0,2.8,2.2,5,5,5h22c2.8,0,5-2.2,5-5v-8.5c0-0.8-0.7-1.5-1.5-1.5h0 C32.6,22.4,31.9,23.1,31.9,23.9z\"\/><\/svg>\t\t\t\t<\/span>\n\t\t\t\t<span class=\"c-blogLink__text\">WordPress\u306e\u3061\u3087\u3063\u3068\u3057\u305f\u5f79\u7acb\u3064Tips | \u3057\u3089\u3053\uff06\u304f\u308d\u306b\u3083\u3093\u306e\u65e5\u5e38<\/span>\n\t\t\t<\/a>\n\t\t<\/div><\/div><\/div>\n<\/div>\n\n\n<h2 id=\"\u30b5\u30f3\u30d7\u30eb\">\u30b5\u30f3\u30d7\u30eb<\/h2>\n\n\n\n<p class=\"has-border -border03\"><span class='pc_only'>\u30af\u30ea\u30c3\u30af<\/span><span class='sp_only'>\u30bf\u30c3\u30d7<\/span><\/p>\n\n\n\n<p>\u5b9f\u969b\u306b\u3053\u306e\u30d6\u30ed\u30b0\u3092PC\u30fb\u30b9\u30de\u30db\u3067\u8868\u793a\u3092\u5206\u3051\u3066\u8868\u793a\u3057\u3066\u307f\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n\n\n\n<h2 id=\"\u30ab\u30b9\u30bf\u30de\u30a4\u30ba\u65b9\u6cd5\">\u30ab\u30b9\u30bf\u30de\u30a4\u30ba\u65b9\u6cd5<\/h2>\n\n\n\n<p>\u5b50\u30c6\u30fc\u30de\u306e<code class=\"file_name\">functions.php<\/code>\u307e\u305f\u306f<a rel=\"noreferrer noopener\" href=\"https:\/\/ja.wordpress.org\/plugins\/code-snippets\/\" target=\"_blank\">Code Snippets\u30d7\u30e9\u30b0\u30a4\u30f3<\/a>\u306b\u3001\u4ee5\u4e0b\u306e\u30b3\u30fc\u30c9\u3092\u5165\u529b\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-php\" data-lang=\"PHP\"><code>add_shortcode( &#39;click_tap&#39;, function() {\nreturn &quot;&lt;span class=&#39;pc_only&#39;&gt;\u30af\u30ea\u30c3\u30af&lt;\/span&gt;&lt;span class=&#39;sp_only&#39;&gt;\u30bf\u30c3\u30d7&lt;\/span&gt;&quot;;\n} );<\/code><\/pre><\/div>\n\n\n\n<h3 id=\"\u4e0a\u8a18\u306e\u30b3\u30fc\u30c9\u3092\u5165\u529b\u3057\u305f\u5f8c\u306f\">\u4e0a\u8a18\u306e\u30b3\u30fc\u30c9\u3092\u5165\u529b\u3057\u305f\u5f8c\u306f<\/h3>\n\n\n\n<p><span class='pc_only'>\u30af\u30ea\u30c3\u30af<\/span><span class='sp_only'>\u30bf\u30c3\u30d7<\/span>\u3068\u8868\u793a\u3057\u305f\u3044\u90e8\u5206\u306b\u3001\u30b7\u30e7\u30fc\u30c8\u30b3\u30fc\u30c9<code>[click_tap]<\/code>\u3092\u5165\u529b\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n\n\n\n<p>\u305f\u3068\u3048\u3070\u3001\u672c\u6587\u3092\u300c<strong>\u3053\u3061\u3089\u3092<span class='pc_only'>\u30af\u30ea\u30c3\u30af<\/span><span class='sp_only'>\u30bf\u30c3\u30d7<\/span>\u3057\u3066\u304f\u3060\u3055\u3044<\/strong>\u300d\u3068\u3057\u305f\u3044\u5834\u5408\u3001\u30a8\u30c7\u30a3\u30bf\u30fc\u753b\u9762\u4e0a\u306f\u300c<strong>\u3053\u3061\u3089\u3092[click_tap]\u3057\u3066\u304f\u3060\u3055\u3044<\/strong>\u300d\u3068\u306a\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<h3 id=\"\u65e2\u5b58\u306e\u30c6\u30ad\u30b9\u30c8\u3092\u30b7\u30e7\u30fc\u30c8\u30b3\u30fc\u30c9\u306b\u7f6e\u304d\u63db\u3048\u308b\u5834\u5408\">\u65e2\u5b58\u306e\u30c6\u30ad\u30b9\u30c8\u3092\u30b7\u30e7\u30fc\u30c8\u30b3\u30fc\u30c9\u306b\u7f6e\u304d\u63db\u3048\u308b\u5834\u5408<\/h3>\n\n\n\n<p><a rel=\"noreferrer noopener\" href=\"https:\/\/ja.wordpress.org\/plugins\/search-regex\/\" target=\"_blank\">Search Regex\u30d7\u30e9\u30b0\u30a4\u30f3<\/a>\u306a\u3069\u3092\u4f7f\u7528\u3057\u3066\u3001\u65e2\u5b58\u306e\u30c6\u30ad\u30b9\u30c8\u3092\u30b7\u30e7\u30fc\u30c8\u30b3\u30fc\u30c9\u306b\u7f6e\u304d\u63db\u3048\u308b\u306e\u304c\u4fbf\u5229\u3067\u3059\u3002<\/p>\n\n\n\n<p>\u305f\u3068\u3048\u3070\u3001\u300c\u30af\u30ea\u30c3\u30af\u300d\u3068\u3044\u3046\u6587\u5b57\u3092\u691c\u7d22\u3057\u3066\u3001\u7f6e\u304d\u63db\u3048\u5f8c\u306e\u30c6\u30ad\u30b9\u30c8\u306f<code>[click_tap]<\/code>\u3068\u3059\u308b\u3068\u826f\u3044\u3067\u3057\u3087\u3046\u3002<\/p>\n\n\n\n<h3 id=\"\u3059\u3067\u306b\u81ea\u529b\u3067\u51fa\u3057\u5206\u3051-\u8868\u793a\u5206\u3051-\u3092\u884c\u3063\u3066\u3044\u308b\u5834\u5408\u306f\">\u3059\u3067\u306b\u81ea\u529b\u3067\u51fa\u3057\u5206\u3051\uff08\u8868\u793a\u5206\u3051\uff09\u3092\u884c\u3063\u3066\u3044\u308b\u5834\u5408\u306f\uff1f<\/h3>\n\n\n\n<p>\u3059\u3067\u306b\u81ea\u529b\u3067\u51fa\u3057\u5206\u3051\uff08PC\u30fb\u30b9\u30de\u30db\u3067\u306e\u8868\u793a\u5206\u3051\uff09\u3092\u884c\u3063\u3066\u3044\u308b\u5834\u5408\u306f\u3001\u7279\u306b\u5148\u307b\u3069\u306e\u7f6e\u304d\u63db\u3048\u306f\u884c\u3046\u5fc5\u8981\u306f\u306a\u3044\u304b\u3068\u601d\u3044\u307e\u3059\uff08\u3082\u3057\u3082\u3001\u3059\u3067\u306b\u7f6e\u304d\u63db\u3048\u3092\u884c\u3063\u305f\u3068\u3057\u3066\u3082\u3001\u7279\u6bb5\u306e\u554f\u984c\u306f\u51fa\u306a\u3044\u3068\u601d\u3044\u307e\u3059\uff09\u3002\u4eca\u5f8c\u3001\u66f4\u65b0\u3059\u308b\u8a18\u4e8b\u3067\u30b7\u30e7\u30fc\u30c8\u30b3\u30fc\u30c9\u3092\u8ffd\u52a0\u3057\u3066\u3044\u3051\u3070\u826f\u3044\u3067\u3057\u3087\u3046\u3002<\/p>\n\n\n\n<h2 id=\"\u4f7f\u7528\u4e0a\u306e\u6ce8\u610f\u70b9\">\u4f7f\u7528\u4e0a\u306e\u6ce8\u610f\u70b9<\/h2>\n\n\n\n<p>\u4e0a\u8a18\u306e\u30b7\u30e7\u30fc\u30c8\u30b3\u30fc\u30c9\u306f\u3001\u305f\u3060\u5358\u306b<\/p>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-html\" data-lang=\"HTML\"><code>&lt;span class=&quot;pc_only&quot;&gt;\u30af\u30ea\u30c3\u30af&lt;\/span&gt;&lt;span class=&quot;sp_only&quot;&gt;\u30bf\u30c3\u30d7&lt;\/span&gt;<\/code><\/pre><\/div>\n\n\n\n<p>\u3068\u3044\u3046HTML\u3092\u81ea\u52d5\u751f\u6210\u3059\u308b\u3060\u3051\u3067\u3059\u3002<\/p>\n\n\n\n<p>\u540c\u3058\u884c\u306b\u3001\u4ed6\u306e\u4f55\u304b\u306e\u8981\u7d20\uff08\u30c6\u30ad\u30b9\u30c8\u306a\u3069\uff09\u304c\u306a\u3044\u5834\u5408\u3001\u81ea\u52d5\u7684\u306b<code>&lt;p&gt;~&lt;\/p&gt;<\/code>\u306a\u3069\u3068\u3044\u3063\u305f\u30bf\u30b0\u306f\u81ea\u52d5\u751f\u6210\u3055\u308c\u307e\u305b\u3093\u3002<\/p>\n\n\n\n<p>\u3057\u305f\u304c\u3063\u3066\u3001<strong>\u672c\u30b7\u30e7\u30fc\u30c8\u30b3\u30fc\u30c9\u4f7f\u7528\u4e0a\u306f\u3001\u5fc5\u305a\u540c\u3058\u884c\u306b\u4f55\u304b\u4ed6\u306e\u8981\u7d20\uff08\u30c6\u30ad\u30b9\u30c8\u306a\u3069\uff09\u3068\u4e00\u7dd2\u306b\u4f7f\u7528<\/strong>\u3057\u3066\u304f\u3060\u3055\u3044\uff08\u901a\u5e38\u3001\u3053\u306e\u30b7\u30e7\u30fc\u30c8\u30b3\u30fc\u30c9\u5358\u72ec\u3067\u4f7f\u3046\u3053\u3068\u306f\u307b\u3068\u3093\u3069\u306a\u3044\u3068\u601d\u3044\u307e\u3059\u304c\u2026\uff01\uff09\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>SWELL\u3067\u30d6\u30ed\u30b0\u3092\u4f5c\u6210\u3059\u308b\u969b\u3001\u30c6\u30ad\u30b9\u30c8\u672c\u6587\u3092PC\u8868\u793a\u306e\u5834\u5408\u300c\u30af\u30ea\u30c3\u30af\u300d\u3001\u30b9\u30de\u30db\u8868\u793a\u306e\u5834\u5408\u300c\u30bf\u30c3\u30d7\u300d\u3068\u8868\u793a\u3092\u5207\u308a\u66ff\u3048\u308b\u30ab\u30b9\u30bf\u30de\u30a4\u30ba\u65b9\u6cd5\u3067\u3059\u3002 \u30b5\u30f3\u30d7\u30eb \u5b9f\u969b\u306b\u3053\u306e\u30d6\u30ed\u30b0\u3092PC\u30fb\u30b9\u30de\u30db\u3067\u8868\u793a\u3092\u5206\u3051\u3066\u8868\u793a\u3057\u3066\u307f\u3066\u304f\u3060\u3055\u3044\u3002  [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"swell_btn_cv_data":""},"categories":[12],"tags":[],"_links":{"self":[{"href":"https:\/\/tecchan.jp\/swell-tips\/wp-json\/wp\/v2\/posts\/1502"}],"collection":[{"href":"https:\/\/tecchan.jp\/swell-tips\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/tecchan.jp\/swell-tips\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/tecchan.jp\/swell-tips\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/tecchan.jp\/swell-tips\/wp-json\/wp\/v2\/comments?post=1502"}],"version-history":[{"count":14,"href":"https:\/\/tecchan.jp\/swell-tips\/wp-json\/wp\/v2\/posts\/1502\/revisions"}],"predecessor-version":[{"id":1530,"href":"https:\/\/tecchan.jp\/swell-tips\/wp-json\/wp\/v2\/posts\/1502\/revisions\/1530"}],"wp:attachment":[{"href":"https:\/\/tecchan.jp\/swell-tips\/wp-json\/wp\/v2\/media?parent=1502"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/tecchan.jp\/swell-tips\/wp-json\/wp\/v2\/categories?post=1502"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/tecchan.jp\/swell-tips\/wp-json\/wp\/v2\/tags?post=1502"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}