Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/maliev/custom_s
Custom WordPress starter theme based on _s and bootstrap 5
https://github.com/maliev/custom_s
acf-pro bootstrap-5 custom-blocks gutenberg-blocks starter-theme underscores webpack wordpress wp-theme
Last synced: about 1 month ago
JSON representation
Custom WordPress starter theme based on _s and bootstrap 5
- Host: GitHub
- URL: https://github.com/maliev/custom_s
- Owner: maliev
- License: gpl-3.0
- Created: 2022-12-02T11:27:09.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2024-06-11T16:27:42.000Z (5 months ago)
- Last Synced: 2024-09-28T16:03:31.285Z (about 2 months ago)
- Topics: acf-pro, bootstrap-5, custom-blocks, gutenberg-blocks, starter-theme, underscores, webpack, wordpress, wp-theme
- Language: PHP
- Homepage:
- Size: 3.51 MB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# WordPress starter theme "CustomS" based on [_s](https://github.com/automattic/_s)
### Installation
Run "npm install" to install all dependencies
Put your fonts to /assets/fonts and add font-face imports to __font-faces.scss
Define headlines or body or default paragraph font styles etc. in the __fonts.scss file
Define bootstrap/hamburger or custom variables
Now you can run your npm build/watcher ```npm run build``` or ```npm run watch```### Dependencies:
- PHP 8
- WordPress >= 6.0
- WordPress plugin "Advanced Custom Fields Pro" >= 6
- Node >= v16All WordPress core blocks except paragraph (for the ability to copy&paste blocks) & your acf blocks are removed by default, you can add them individually back here:
```
//custom-functions.php
function customs_allowed_block_types( $block_editor_context, $editor_context ): array|bool {
if ( function_exists( 'acf_get_block_types' ) ) {
$allowedBlocks = array_keys( acf_get_block_types() );
//add needed core blocks
array_push( $allowedBlocks, 'core/spacer', 'core/paragraph' );
return $allowedBlocks;
}
return $block_editor_context;
}add_filter( 'allowed_block_types_all', 'customs_allowed_block_types', 10, 2 );
```
All local registered custom fields can be stored in your git repository and imported on your live server without having to export/import acf-json file or dabasehttps://user-images.githubusercontent.com/76956279/205954107-fc3e412a-853e-45a5-b2b4-beb4fff36d10.mov
### Install wp plugins from predefined text file with your must have plugin list !!!wp-cli is required
- Define pluginlist in the pluginlist.txt
- run the command: ```wp plugin install $(<"pluginlist.txt") --allow-root --activate```
- to update all your plugins: ```wp plugin update --all```