Skip to content

Commit

Permalink
Merge pull request #41 from bootscore/Moved-assets-to-assets-folder
Browse files Browse the repository at this point in the history
Moved assets to assets folder
  • Loading branch information
crftwrk authored Feb 17, 2024
2 parents cf5c843 + a32ef67 commit d841656
Show file tree
Hide file tree
Showing 10 changed files with 8 additions and 4 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
.DS_Store
css/main.css
css/main.map
assets/css/main.css
assets/css/main.map
assets/css/main.css.map
File renamed without changes
File renamed without changes
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
9 changes: 5 additions & 4 deletions functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@

/**
* @package Bootscore Child
* @version 5.4.0
*
* @version 6.0.0
*/


Expand All @@ -17,12 +18,12 @@
function bootscore_child_enqueue_styles() {

// Compiled main.css
$modified_bootscoreChildCss = date('YmdHi', filemtime(get_stylesheet_directory() . '/css/main.css'));
wp_enqueue_style('main', get_stylesheet_directory_uri() . '/css/main.css', array('parent-style'), $modified_bootscoreChildCss);
$modified_bootscoreChildCss = date('YmdHi', filemtime(get_stylesheet_directory() . '/assets/css/main.css'));
wp_enqueue_style('main', get_stylesheet_directory_uri() . '/assets/css/main.css', array('parent-style'), $modified_bootscoreChildCss);

// style.css
wp_enqueue_style('parent-style', get_template_directory_uri() . '/style.css');

// custom.js
wp_enqueue_script('custom-js', get_stylesheet_directory_uri() . '/js/custom.js', false, '', true);
wp_enqueue_script('custom-js', get_stylesheet_directory_uri() . '/assets/js/custom.js', false, '', true);
}

0 comments on commit d841656

Please sign in to comment.