{"id":14593356,"date":"2021-06-24T17:53:07","date_gmt":"2021-06-24T17:53:07","guid":{"rendered":"https:\/\/wordpress.org\/support\/topic\/css-file-path-error\/"},"modified":"2021-06-24T17:53:07","modified_gmt":"2021-06-24T17:53:07","slug":"css-file-path-error","status":"publish","type":"topic","link":"https:\/\/wordpress.org\/support\/topic\/css-file-path-error\/","title":{"rendered":"CSS file path error"},"content":{"rendered":"<p>The plugin enqueues css file with double slash, similar to<br \/>\nhttps:\/\/&#8230;\/wp-content\/plugins\/column-shortcodes\/\/assets\/css\/shortcodes.css<\/p>\n<p>Notice the double slash just prior to assets folder name.<\/p>\n<p>column-shortcodes.php contains;<br \/>\n<code>wp_enqueue_style( &#039;cpsh-shortcodes&#039;, $this-&gt;get_url() . &#039;\/assets\/css\/shortcodes.css&#039;, array(), $this-&gt;get_version(), &#039;all&#039; );<\/code><\/p>\n<p>&#8230; where $this-&gt;get_url() produces path with trailing slash like;<br \/>\n<code>https:\/\/...\/wp-content\/plugins\/column-shortcodes\/<\/code><\/p>\n<p>&#8230; and as the following static path to css file starts with slash, it causes the double slash in the path.<\/p>\n","protected":false},"template":"","class_list":["post-14593356","topic","type-topic","status-publish","hentry"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/14593356","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic"}],"about":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/types\/topic"}],"version-history":[{"count":0,"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/14593356\/revisions"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=14593356"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}