Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Handbook: Fixed a type and made the whole explaination more clear. #30487

Merged
merged 2 commits into from
Apr 7, 2021
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ function create_block_gutenpride_block_init() {
add_action( 'init', 'create_block_gutenpride_block_init' );
```

This function handles that all style en js files in the `build` folder get handles that are passed on to the `wp_register_style` function.
This function checks the `block.json` file for js and css files. And will pass them on to [enque](https://developer.wordpress.org/themes/basics/including-css-javascript/) these files, so they are loaded on the appropriate pages.
mkaz marked this conversation as resolved.
Show resolved Hide resolved

The `build/index.css` is compiled from `src/editor.scss` and loads only within the editor, and after the `style-index.css`.
The `build/style-index.css` is compiled from `src/style.scss` and loads in both the editor and front-end — published post view.
Expand Down