CSS file path error
-
The plugin enqueues css file with double slash, similar to
https://…/wp-content/plugins/column-shortcodes//assets/css/shortcodes.cssNotice the double slash just prior to assets folder name.
column-shortcodes.php contains;
wp_enqueue_style( 'cpsh-shortcodes', $this->get_url() . '/assets/css/shortcodes.css', array(), $this->get_version(), 'all' );… where $this->get_url() produces path with trailing slash like;
https://.../wp-content/plugins/column-shortcodes/… and as the following static path to css file starts with slash, it causes the double slash in the path.
The topic ‘CSS file path error’ is closed to new replies.