Skip to content

Commit 1d21a86

Browse files
committed
update version number and compile js assets
1 parent ea868b7 commit 1d21a86

File tree

6 files changed

+1547
-1519
lines changed

6 files changed

+1547
-1519
lines changed

README.md

+6-3
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ Understrap Child Theme shares with the parent theme all PHP files and adds its o
99
Understrap Child Theme uses the Enqueue method to load and sort the CSS file the right way instead of the old @import method.
1010

1111
## Installation
12-
1. Install the parent theme UnderStrap first: `https://github.com/understrap/understrap`
12+
1. Install the parent theme UnderStrap first: `https://github.com/understrap/understrap` or `https://wordpress.org/themes/understrap/`
1313
- IMPORTANT: If you download UnderStrap from GitHub make sure you rename the "understrap-master.zip" file to "understrap.zip" or you might have problems using this child theme!
1414
1. Upload the understrap-child folder to your wp-content/themes directory
1515
1. Go into your WP admin backend
@@ -32,6 +32,8 @@ It will be outputted into:
3232

3333
So you have one clean CSS file at the end and just one request.
3434

35+
Add your own JS files to `src/js/` to have them bundled into child-theme.js.
36+
3537
## Developing With NPM, Gulp, SASS and Browser Sync
3638

3739
### Installing Dependencies
@@ -49,8 +51,9 @@ Or, to run with Browser-Sync:
4951
- First change the browser-sync options to reflect your environment in the file `/gulpconfig.json` in the beginning of the file:
5052
```javascript
5153
"browserSyncOptions" : {
52-
"proxy": "localhost/wordpress/",
53-
"notify": false
54+
"proxy": "localhost/",
55+
"notify": false,
56+
"files": ["./css/*.min.css", "./js/*.min.js", "./**/*.php"]
5457
}
5558
};
5659
```

gulpfile.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -196,14 +196,14 @@ gulp.task( 'scripts', function() {
196196
gulp
197197
.src( scripts, { allowEmpty: true } )
198198
.pipe( babel( { presets: ['@babel/preset-env'] } ) )
199-
.pipe( concat( 'theme.min.js' ) )
199+
.pipe( concat( 'child-theme.min.js' ) )
200200
.pipe( uglify() )
201201
.pipe( gulp.dest( paths.js ) );
202202

203203
return gulp
204204
.src( scripts, { allowEmpty: true } )
205205
.pipe( babel() )
206-
.pipe( concat( 'theme.js' ) )
206+
.pipe( concat( 'child-theme.js' ) )
207207
.pipe( gulp.dest( paths.js ) );
208208
} );
209209

0 commit comments

Comments
 (0)