Skip to content

Commit 8068408

Browse files
committed
Fixed dependency bug with equeueing site.css
1 parent ec5261b commit 8068408

1 file changed

Lines changed: 1 addition & 5 deletions

File tree

app/EnqueueScripts.php

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -25,15 +25,11 @@ function __construct() {
2525
*/
2626
public function enqueue_frontend_scripts() {
2727

28-
// Example enqueuing remote scripts (http://select2.github.io/)
29-
wp_enqueue_style( 'select2', '//cdnjs.cloudflare.com/ajax/libs/select2/4.0.3/css/select2.min.css', null, '4.0.3' );
30-
wp_enqueue_script( 'select2', '//cdnjs.cloudflare.com/ajax/libs/select2/4.0.3/js/select2.min.js', array('jquery'), '4.0.3' );
31-
3228
// Example enqueuing a script added from ZIP file via composer (http://underscorejs.org/)
3329
wp_enqueue_script( 'underscore', $this->get_script_url('vendor/jashkenas/underscore/underscore-min.js'), null, '1.8.3' );
3430

3531
// Enqueuing custom CSS for child theme (Twentysixteen was used for testing)
36-
wp_enqueue_style( 'child-style', $this->get_script_url('assets/css/site.css'), array('select2'), $this->get_script_version('assets/css/site.css') );
32+
wp_enqueue_style( 'wordpress-base-plugin', $this->get_script_url('assets/css/site.css'), null, $this->get_script_version('assets/css/site.css') );
3733

3834
}
3935

0 commit comments

Comments
 (0)