Open app/setup.php
, find the after_setup_theme
action and put add_theme_support('woocommerce');
inside the function.
Add the templates you want to override in resources/woocommerce
:
theme
│
<?php | |
// Hook up function to allowed_block_types filter | |
add_filter( 'allowed_block_types', 'set_allowed_block_types' ); | |
/** | |
* Set allowed gutenburg block types | |
* https://rudrastyh.com/gutenberg/remove-default-blocks.html | |
*/ |
module.exports = function(eleventyConfig) { // This only happens once in your template! | |
// Blah blah, whatever other Eleventy stuff you need. | |
eleventyConfig.addLiquidShortcode("youtube", (youtubeId, aspectRatio) => { | |
return `<div class="aspect-ratio" style="--aspect-ratio: ${aspectRatio}"><iframe class="youtube-player video video--youtube" src="https://www.youtube.com/embed/${youtubeId}/" frameborder="0" allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe></div>`; | |
}); | |
// Blah blah, whatever other Eleventy stuff you need. | |
**/*.min.js | |
**/*.build.js | |
**/node_modules/** | |
**/vendor/** | |
build | |
coverage | |
cypress | |
node_modules | |
vendor |
add_filter( 'gform_ip_address', '__return_empty_string' ); |
function my_custom_icons( $sets ) { | |
$path = get_stylesheet_directory() . '/my-custom-icons/'; | |
$url = get_stylesheet_directory_uri() . '/my-custom-icons/'; | |
$data = json_decode( file_get_contents( $path . 'selection.json' ) ); | |
$icons = array(); | |
foreach ( $data->icons as $icon ) { | |
$prefs = $data->preferences->fontPref; |
{ | |
"name": "webpack-sass", | |
"version": "1.0.0", | |
"scripts": { | |
"start": "webpack-dev-server --open --mode development", | |
"build": "webpack -p" | |
}, | |
"devDependencies": { | |
"babel-core": "^6.26.0", | |
"babel-loader": "^7.1.4", |
<?php | |
/** | |
* Plugin Name: WP Slack REST API Backend | |
* Description: An example of using the WordPress REST API as a backend for a Slack Bot | |
* Author: Andy Brudtkuhl | |
* Author URI: http://youmetandy.com | |
* Version: 0.1 | |
* Plugin URI: https://github.com/abrudtkuhl/heykramer | |
* License: GPL2+ |
--- | |
- name: Sync uploads between environments | |
hosts: web | |
remote_user: "{{ web_user }}" | |
vars: | |
project: "{{ wordpress_sites[site] }}" | |
project_root: "{{ www_root }}/{{ site }}" | |
tasks: |