{"id":2038,"date":"2018-11-19T00:48:30","date_gmt":"2018-11-18T15:48:30","guid":{"rendered":"http:\/\/www.cotegg.com\/blog\/?p=2038"},"modified":"2018-11-19T00:48:30","modified_gmt":"2018-11-18T15:48:30","slug":"wordpress%e5%90%84%e5%9b%ba%e5%ae%9a%e3%83%9a%e3%83%bc%e3%82%b8%e3%81%ab%e5%80%8b%e5%88%a5%e3%81%aecss%e3%82%92%e8%aa%ad%e3%81%bf%e8%be%bc%e3%81%be%e3%81%9b%e3%82%8b","status":"publish","type":"post","link":"https:\/\/www.cotegg.com\/blog\/?p=2038","title":{"rendered":"[wordpress]\u5404\u56fa\u5b9a\u30da\u30fc\u30b8\u306b\u500b\u5225\u306eCSS\u3092\u8aad\u307f\u8fbc\u307e\u305b\u308b"},"content":{"rendered":"<p>\u3053\u3093\u3070\u3093\u306f<\/p>\n<p>wordpredd\u3067\u30aa\u30ea\u30b8\u30ca\u30eb\u30c6\u30fc\u30de\u3092\u4f5c\u6210\u3057\u3066\u3044\u308b\u6642\u3001\u5404\u56fa\u5b9a\u30da\u30fc\u30b8\u306b\u5bfe\u3057\u3066\u30da\u30fc\u30b8\u7279\u6709\u306eCSS\u3092\u8aad\u307f\u8fbc\u307e\u305b\u305f\u3044\u6642\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<p>\u4eca\u56de\u306f\u5171\u901a\u3067\u4f7f\u3046CSS\u3068\u56fa\u5b9a\u30da\u30fc\u30b8\u3067\u8aad\u307f\u8fbc\u307e\u305b\u305f\u3044CSS\u3092\u305d\u308c\u305e\u308c\u898b\u3066\u3044\u304d\u305f\u3044\u3068\u601d\u3044\u307e\u3059\u3002<br \/>\nJS\u3067\u3082\u57fa\u672c\u7684\u306a\u6d41\u308c\u306f\u540c\u3058\u3067\u3059\u3002<\/p>\n<p>\u5148\u305a\u306ffunctions.php\u306e\u4e2d\u306b\u8aad\u307f\u8fbc\u3080CSS\u3092\u767b\u9332\u3057\u307e\u3059\u3002<\/p>\n<p><code>function register_stylesheet() {<br \/>\n  \/\/\u5171\u901aCSS<br \/>\n  wp_register_style('reset', get_template_directory_uri().'\/common\/css\/reset.css');<br \/>\n  \/\/ \u3042\u308b\u30da\u30fc\u30b8\u3060\u3051\u3067\u4f7f\u3044\u305f\u3044CSS(\u4eca\u56de\u306fcompany\u30da\u30fc\u30b8)<br \/>\n  wp_register_style('company', get_template_directory_uri().'\/css\/company\/company.css');<br \/>\n}<\/code><\/p>\n<p>\u6b21\u306b\u767b\u9332\u3057\u305fCSS\u3092\u8aad\u307f\u8fbc\u307e\u305b\u307e\u3059\u3002\u3042\u308b\u30da\u30fc\u30b8\u3060\u3051\u3067\u4f7f\u3044\u305f\u3044CSS\u306fis_page\u3067\u3069\u3053\u306e\u30da\u30fc\u30b8\u3067\u8aad\u307f\u8fbc\u307f\u305f\u3044\u304b\u3092\u6307\u5b9a\u3057\u307e\u3059\u3002<\/p>\n<p><code>function register_stylesheet() {<br \/>\n  register_stylesheet();<br \/>\n  \/\/ \u5171\u901aCSS<br \/>\n  wp_enqueue_style('reset', '', array(), '1.0', false);<br \/>\n  \/\/ \u3042\u308b\u30da\u30fc\u30b8\u3060\u3051\u3067\u4f7f\u3044\u305f\u3044CSS(\u4eca\u56de\u306fcompany\u30da\u30fc\u30b8)<br \/>\n  if ( is_page('company') ) {<br \/>\n    wp_enqueue_style('company', '', array(), '1.0', false);<br \/>\n  }<br \/>\n}<\/code><\/p>\n<p>if ( is_page(&#8216;company&#8217;) ) \u306ecompany\u306e\u90e8\u5206\u306f\u30da\u30fc\u30b8\u306e\u300c\u30b9\u30e9\u30c3\u30b0\u300d\u3092\u8a18\u8ff0\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<p>\u30b9\u30e9\u30c3\u30b0\u304c\u3088\u304f\u308f\u304b\u3089\u306a\u3044\u3068\u3044\u3046\u65b9\u306f\u4e0b\u8a18\u306e\u8a18\u4e8b\u304c\u53c2\u8003\u306b\u306a\u308b\u3067\u3057\u3087\u3046\u3002<br \/>\n<a href=\"https:\/\/www.infact1.co.jp\/staff_blog\/webmarketing\/4853\/\" rel=\"noopener\" target=\"_blank\">WordPress\u30d6\u30ed\u30b0\u7ba1\u7406\u8005\u5fc5\u898b\uff01 \u300e\u30b9\u30e9\u30c3\u30b0\u300f\u3092\u6d3b\u7528\u3057\u3088\u3046<\/a><\/p>\n<p>\u3053\u308c\u3067company.css\u306fcompany\u30da\u30fc\u30b8\u3060\u3051\u3067\u8aad\u307f\u8fbc\u307e\u308c\u308b\u3088\u3046\u306b\u306a\u308a\u307e\u3057\u305f\uff01<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u3053\u3093\u3070\u3093\u306f wordpredd\u3067\u30aa\u30ea\u30b8\u30ca\u30eb\u30c6\u30fc\u30de\u3092\u4f5c\u6210\u3057\u3066\u3044\u308b\u6642\u3001\u5404\u56fa\u5b9a\u30da\u30fc\u30b8\u306b &#8230; <\/p>\n","protected":false},"author":101012,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"inline_featured_image":false,"footnotes":""},"categories":[7],"tags":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.13 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>[wordpress]\u5404\u56fa\u5b9a\u30da\u30fc\u30b8\u306b\u500b\u5225\u306eCSS\u3092\u8aad\u307f\u8fbc\u307e\u305b\u308b | \u30b3\u30fc\u30c6\u30c3\u30b0\u306e\u30d0\u30b1\u30c4<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.cotegg.com\/blog\/?p=2038\" \/>\n<meta property=\"og:locale\" content=\"ja_JP\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"[wordpress]\u5404\u56fa\u5b9a\u30da\u30fc\u30b8\u306b\u500b\u5225\u306eCSS\u3092\u8aad\u307f\u8fbc\u307e\u305b\u308b | \u30b3\u30fc\u30c6\u30c3\u30b0\u306e\u30d0\u30b1\u30c4\" \/>\n<meta property=\"og:description\" content=\"\u3053\u3093\u3070\u3093\u306f wordpredd\u3067\u30aa\u30ea\u30b8\u30ca\u30eb\u30c6\u30fc\u30de\u3092\u4f5c\u6210\u3057\u3066\u3044\u308b\u6642\u3001\u5404\u56fa\u5b9a\u30da\u30fc\u30b8\u306b ...\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.cotegg.com\/blog\/?p=2038\" \/>\n<meta property=\"og:site_name\" content=\"\u30b3\u30fc\u30c6\u30c3\u30b0\u306e\u30d0\u30b1\u30c4\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/COTegg.japan\/\" \/>\n<meta property=\"article:published_time\" content=\"2018-11-18T15:48:30+00:00\" \/>\n<meta name=\"author\" content=\"asakos\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@cotegg_japan\" \/>\n<meta name=\"twitter:site\" content=\"@cotegg_japan\" \/>\n<meta name=\"twitter:label1\" content=\"\u57f7\u7b46\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"asakos\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/www.cotegg.com\/blog\/?p=2038#article\",\"isPartOf\":{\"@id\":\"https:\/\/www.cotegg.com\/blog\/?p=2038\"},\"author\":{\"name\":\"asakos\",\"@id\":\"https:\/\/www.cotegg.com\/blog\/#\/schema\/person\/eabce460c5ae1b67a47e64637cb2ec3f\"},\"headline\":\"[wordpress]\u5404\u56fa\u5b9a\u30da\u30fc\u30b8\u306b\u500b\u5225\u306eCSS\u3092\u8aad\u307f\u8fbc\u307e\u305b\u308b\",\"datePublished\":\"2018-11-18T15:48:30+00:00\",\"dateModified\":\"2018-11-18T15:48:30+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/www.cotegg.com\/blog\/?p=2038\"},\"wordCount\":23,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/www.cotegg.com\/blog\/#organization\"},\"articleSection\":[\"\u6280\u8853\"],\"inLanguage\":\"ja\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/www.cotegg.com\/blog\/?p=2038#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.cotegg.com\/blog\/?p=2038\",\"url\":\"https:\/\/www.cotegg.com\/blog\/?p=2038\",\"name\":\"[wordpress]\u5404\u56fa\u5b9a\u30da\u30fc\u30b8\u306b\u500b\u5225\u306eCSS\u3092\u8aad\u307f\u8fbc\u307e\u305b\u308b | \u30b3\u30fc\u30c6\u30c3\u30b0\u306e\u30d0\u30b1\u30c4\",\"isPartOf\":{\"@id\":\"https:\/\/www.cotegg.com\/blog\/#website\"},\"datePublished\":\"2018-11-18T15:48:30+00:00\",\"dateModified\":\"2018-11-18T15:48:30+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/www.cotegg.com\/blog\/?p=2038#breadcrumb\"},\"inLanguage\":\"ja\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.cotegg.com\/blog\/?p=2038\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.cotegg.com\/blog\/?p=2038#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.cotegg.com\/blog\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"[wordpress]\u5404\u56fa\u5b9a\u30da\u30fc\u30b8\u306b\u500b\u5225\u306eCSS\u3092\u8aad\u307f\u8fbc\u307e\u305b\u308b\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.cotegg.com\/blog\/#website\",\"url\":\"https:\/\/www.cotegg.com\/blog\/\",\"name\":\"COTegg\u306e\u30d0\u30b1\u30c4\",\"description\":\"- Bucket of cotegg -\",\"publisher\":{\"@id\":\"https:\/\/www.cotegg.com\/blog\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.cotegg.com\/blog\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"ja\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/www.cotegg.com\/blog\/#organization\",\"name\":\"COTegg Inc.\",\"url\":\"https:\/\/www.cotegg.com\/blog\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"ja\",\"@id\":\"https:\/\/www.cotegg.com\/blog\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/www.cotegg.com\/blog\/wp-content\/uploads\/2015\/07\/logo_color1_yoko-e1436354651882.png\",\"contentUrl\":\"https:\/\/www.cotegg.com\/blog\/wp-content\/uploads\/2015\/07\/logo_color1_yoko-e1436354651882.png\",\"width\":176,\"height\":60,\"caption\":\"COTegg Inc.\"},\"image\":{\"@id\":\"https:\/\/www.cotegg.com\/blog\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/COTegg.japan\/\",\"https:\/\/twitter.com\/cotegg_japan\",\"https:\/\/www.instagram.com\/cotegg_japan\/\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.cotegg.com\/blog\/#\/schema\/person\/eabce460c5ae1b67a47e64637cb2ec3f\",\"name\":\"asakos\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"ja\",\"@id\":\"https:\/\/www.cotegg.com\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/54e850f2929db050ecd3dadaa9f93ef6?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/54e850f2929db050ecd3dadaa9f93ef6?s=96&d=mm&r=g\",\"caption\":\"asakos\"},\"url\":\"https:\/\/www.cotegg.com\/blog\/?author=101012\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"[wordpress]\u5404\u56fa\u5b9a\u30da\u30fc\u30b8\u306b\u500b\u5225\u306eCSS\u3092\u8aad\u307f\u8fbc\u307e\u305b\u308b | \u30b3\u30fc\u30c6\u30c3\u30b0\u306e\u30d0\u30b1\u30c4","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.cotegg.com\/blog\/?p=2038","og_locale":"ja_JP","og_type":"article","og_title":"[wordpress]\u5404\u56fa\u5b9a\u30da\u30fc\u30b8\u306b\u500b\u5225\u306eCSS\u3092\u8aad\u307f\u8fbc\u307e\u305b\u308b | \u30b3\u30fc\u30c6\u30c3\u30b0\u306e\u30d0\u30b1\u30c4","og_description":"\u3053\u3093\u3070\u3093\u306f wordpredd\u3067\u30aa\u30ea\u30b8\u30ca\u30eb\u30c6\u30fc\u30de\u3092\u4f5c\u6210\u3057\u3066\u3044\u308b\u6642\u3001\u5404\u56fa\u5b9a\u30da\u30fc\u30b8\u306b ...","og_url":"https:\/\/www.cotegg.com\/blog\/?p=2038","og_site_name":"\u30b3\u30fc\u30c6\u30c3\u30b0\u306e\u30d0\u30b1\u30c4","article_publisher":"https:\/\/www.facebook.com\/COTegg.japan\/","article_published_time":"2018-11-18T15:48:30+00:00","author":"asakos","twitter_card":"summary_large_image","twitter_creator":"@cotegg_japan","twitter_site":"@cotegg_japan","twitter_misc":{"\u57f7\u7b46\u8005":"asakos"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.cotegg.com\/blog\/?p=2038#article","isPartOf":{"@id":"https:\/\/www.cotegg.com\/blog\/?p=2038"},"author":{"name":"asakos","@id":"https:\/\/www.cotegg.com\/blog\/#\/schema\/person\/eabce460c5ae1b67a47e64637cb2ec3f"},"headline":"[wordpress]\u5404\u56fa\u5b9a\u30da\u30fc\u30b8\u306b\u500b\u5225\u306eCSS\u3092\u8aad\u307f\u8fbc\u307e\u305b\u308b","datePublished":"2018-11-18T15:48:30+00:00","dateModified":"2018-11-18T15:48:30+00:00","mainEntityOfPage":{"@id":"https:\/\/www.cotegg.com\/blog\/?p=2038"},"wordCount":23,"commentCount":0,"publisher":{"@id":"https:\/\/www.cotegg.com\/blog\/#organization"},"articleSection":["\u6280\u8853"],"inLanguage":"ja","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.cotegg.com\/blog\/?p=2038#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.cotegg.com\/blog\/?p=2038","url":"https:\/\/www.cotegg.com\/blog\/?p=2038","name":"[wordpress]\u5404\u56fa\u5b9a\u30da\u30fc\u30b8\u306b\u500b\u5225\u306eCSS\u3092\u8aad\u307f\u8fbc\u307e\u305b\u308b | \u30b3\u30fc\u30c6\u30c3\u30b0\u306e\u30d0\u30b1\u30c4","isPartOf":{"@id":"https:\/\/www.cotegg.com\/blog\/#website"},"datePublished":"2018-11-18T15:48:30+00:00","dateModified":"2018-11-18T15:48:30+00:00","breadcrumb":{"@id":"https:\/\/www.cotegg.com\/blog\/?p=2038#breadcrumb"},"inLanguage":"ja","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.cotegg.com\/blog\/?p=2038"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.cotegg.com\/blog\/?p=2038#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.cotegg.com\/blog"},{"@type":"ListItem","position":2,"name":"[wordpress]\u5404\u56fa\u5b9a\u30da\u30fc\u30b8\u306b\u500b\u5225\u306eCSS\u3092\u8aad\u307f\u8fbc\u307e\u305b\u308b"}]},{"@type":"WebSite","@id":"https:\/\/www.cotegg.com\/blog\/#website","url":"https:\/\/www.cotegg.com\/blog\/","name":"COTegg\u306e\u30d0\u30b1\u30c4","description":"- Bucket of cotegg -","publisher":{"@id":"https:\/\/www.cotegg.com\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.cotegg.com\/blog\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"ja"},{"@type":"Organization","@id":"https:\/\/www.cotegg.com\/blog\/#organization","name":"COTegg Inc.","url":"https:\/\/www.cotegg.com\/blog\/","logo":{"@type":"ImageObject","inLanguage":"ja","@id":"https:\/\/www.cotegg.com\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/www.cotegg.com\/blog\/wp-content\/uploads\/2015\/07\/logo_color1_yoko-e1436354651882.png","contentUrl":"https:\/\/www.cotegg.com\/blog\/wp-content\/uploads\/2015\/07\/logo_color1_yoko-e1436354651882.png","width":176,"height":60,"caption":"COTegg Inc."},"image":{"@id":"https:\/\/www.cotegg.com\/blog\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/COTegg.japan\/","https:\/\/twitter.com\/cotegg_japan","https:\/\/www.instagram.com\/cotegg_japan\/"]},{"@type":"Person","@id":"https:\/\/www.cotegg.com\/blog\/#\/schema\/person\/eabce460c5ae1b67a47e64637cb2ec3f","name":"asakos","image":{"@type":"ImageObject","inLanguage":"ja","@id":"https:\/\/www.cotegg.com\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/54e850f2929db050ecd3dadaa9f93ef6?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/54e850f2929db050ecd3dadaa9f93ef6?s=96&d=mm&r=g","caption":"asakos"},"url":"https:\/\/www.cotegg.com\/blog\/?author=101012"}]}},"_links":{"self":[{"href":"https:\/\/www.cotegg.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/2038"}],"collection":[{"href":"https:\/\/www.cotegg.com\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.cotegg.com\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.cotegg.com\/blog\/index.php?rest_route=\/wp\/v2\/users\/101012"}],"replies":[{"embeddable":true,"href":"https:\/\/www.cotegg.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=2038"}],"version-history":[{"count":4,"href":"https:\/\/www.cotegg.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/2038\/revisions"}],"predecessor-version":[{"id":2042,"href":"https:\/\/www.cotegg.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/2038\/revisions\/2042"}],"wp:attachment":[{"href":"https:\/\/www.cotegg.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2038"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.cotegg.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=2038"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.cotegg.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=2038"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}