{"id":108,"date":"2019-09-16T04:52:07","date_gmt":"2019-09-16T04:52:07","guid":{"rendered":"http:\/\/sumitjangid.com\/?p=108"},"modified":"2019-09-16T04:52:07","modified_gmt":"2019-09-16T04:52:07","slug":"css-not-working-after-azure-deployment","status":"publish","type":"post","link":"http:\/\/sumitjangid.com\/index.php\/2019\/09\/16\/css-not-working-after-azure-deployment\/","title":{"rendered":"Css not working after azure deployment"},"content":{"rendered":"\n<p>There are two types of environment block in  your layout page, as you can see below, Most of times we add the css and js in include development environment but misses the exclude development environment.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code> &lt;environment include=\"Development\">\n        &lt;link rel=\"stylesheet\" href=\"~\/lib\/bootstrap\/dist\/css\/bootstrap.css\" \/>\n        &lt;link rel=\"stylesheet\" href=\"~\/css\/site.css\" \/>\n        &lt;link  rel=\"stylesheet\" href=\"~\/lib\/bootstrap\/dist\/css\/CParts2018.css\" \/>\n        &lt;script src=\"~\/lib\/bootstrap\/dist\/js\/CParts2018.js\">&lt;\/script>\n    &lt;\/environment>\n    &lt;environment exclude=\"Development\">\n        &lt;link rel=\"stylesheet\" href=\"https:\/\/ajax.aspnetcdn.com\/ajax\/bootstrap\/3.3.7\/css\/bootstrap.min.css\"\n              asp-fallback-href=\"~\/lib\/bootstrap\/dist\/css\/bootstrap.min.css\"\n              asp-fallback-test-class=\"sr-only\" asp-fallback-test-property=\"position\" asp-fallback-test-value=\"absolute\" \/>\n        &lt;link rel=\"stylesheet\" href=\"~\/css\/site.min.css\" asp-append-version=\"true\" \/>\n        &lt;link rel=\"stylesheet\" href=\"~\/lib\/bootstrap\/dist\/css\/CParts2018.css\" \/>\n    &lt;\/environment><\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>There are two types of environment block in your layout page, as you can see below, Most of times we add the css and js in include development environment but misses the exclude development environment.<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[3,5,2],"tags":[],"_links":{"self":[{"href":"http:\/\/sumitjangid.com\/index.php\/wp-json\/wp\/v2\/posts\/108"}],"collection":[{"href":"http:\/\/sumitjangid.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/sumitjangid.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/sumitjangid.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/sumitjangid.com\/index.php\/wp-json\/wp\/v2\/comments?post=108"}],"version-history":[{"count":1,"href":"http:\/\/sumitjangid.com\/index.php\/wp-json\/wp\/v2\/posts\/108\/revisions"}],"predecessor-version":[{"id":109,"href":"http:\/\/sumitjangid.com\/index.php\/wp-json\/wp\/v2\/posts\/108\/revisions\/109"}],"wp:attachment":[{"href":"http:\/\/sumitjangid.com\/index.php\/wp-json\/wp\/v2\/media?parent=108"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/sumitjangid.com\/index.php\/wp-json\/wp\/v2\/categories?post=108"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/sumitjangid.com\/index.php\/wp-json\/wp\/v2\/tags?post=108"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}