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
│
| 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. | |
| <?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 | |
| */ |
If you are in my boots, starting using podman for the first time and want it to get it working on Windows and WSL, this is for you. It's a bit of a pain to have the same "Docker Desktop" experience just with "Podman Desktop".
This guide doesn't matter for security, it just documents how you make things work.
This guide only works for ubuntu 24 in your WSL distro. Versions bellow have older podman versions which are not compatible with podman desktop.