-
Notifications
You must be signed in to change notification settings - Fork 32
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Stylish Press Blueprint: A Woo store with custom theme, content, and …
…products (#51) Introduces the "Stylish Press" – a WooCommerce store. - Custom content - Custom theme - Non-standard font - A variety of products. - A small PHP plugin to enable pretty permalinks. ## Quick Preview [Preview in WordPress Playground](https://playground.wordpress.net/?blueprint-url=https://raw.githubusercontent.com/WordPress/blueprints/stylish-press/blueprints/stylish-press/blueprint.json) ![](https://github.com/WordPress/blueprints/assets/205419/a2c4f541-b116-49a0-885a-77fc6fe1169a)
- Loading branch information
Showing
29 changed files
with
5,385 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,120 @@ | ||
{ | ||
"$schema": "https://playground.wordpress.net/blueprint-schema.json", | ||
"meta": { | ||
"title": "Stylish Press", | ||
"description": "A Woo store with custom theme, content, and products.", | ||
"author": "adamziel", | ||
"categories": ["Woocommerce", "Site"] | ||
}, | ||
"landingPage": "/shop", | ||
"preferredVersions": { | ||
"php": "8.3", | ||
"wp": "latest" | ||
}, | ||
"features": { | ||
"networking": true | ||
}, | ||
"steps": [ | ||
{ | ||
"step": "resetData" | ||
}, | ||
{ | ||
"step": "writeFile", | ||
"path": "/wordpress/wp-content/mu-plugins/rewrite.php", | ||
"data": "<?php /* Use pretty permalinks */ add_action( 'after_setup_theme', function() { global $wp_rewrite; $wp_rewrite->set_permalink_structure('/%postname%/'); $wp_rewrite->flush_rules(); } );" | ||
}, | ||
{ | ||
"step": "setSiteOptions", | ||
"options": { | ||
"blogname": "Stylish Press", | ||
"woocommerce_store_city": "Wrocław", | ||
"woocommerce_store_address": "Aleje Jerozolimskie 14", | ||
"woocommerce_store_postcode": "00-153", | ||
"woocommerce_default_country": "Poland", | ||
"woocommerce_onboarding_profile": { | ||
"skipped": true | ||
}, | ||
"woocommerce_currency": "PLN", | ||
"woocommerce_weight_unit": "oz", | ||
"woocommerce_dimension_unit": "in", | ||
"woocommerce_allow_tracking": "no", | ||
"woocommerce_cheque_settings": { | ||
"enabled": "yes" | ||
} | ||
} | ||
}, | ||
{ | ||
"step": "installPlugin", | ||
"pluginZipFile": { | ||
"resource": "wordpress.org/plugins", | ||
"slug": "woocommerce" | ||
}, | ||
"options": { | ||
"activate": true | ||
} | ||
}, | ||
{ | ||
"step": "importWxr", | ||
"file": { | ||
"resource": "url", | ||
"url": "https://raw.githubusercontent.com/wordpress/blueprints/stylish-press/blueprints/stylish-press/woo-products.wxr" | ||
} | ||
}, | ||
{ | ||
"step": "importWxr", | ||
"file": { | ||
"resource": "url", | ||
"url": "https://raw.githubusercontent.com/wordpress/blueprints/stylish-press/blueprints/stylish-press/site-content.wxr" | ||
} | ||
}, | ||
{ | ||
"step": "mkdir", | ||
"path": "/wordpress/wp-content/themes/stylish-press-theme" | ||
}, | ||
{ | ||
"step": "writeFile", | ||
"path": "/wordpress/wp-content/themes/stylish-press-theme/style.css", | ||
"data": { | ||
"resource": "url", | ||
"url": "https://raw.githubusercontent.com/WordPress/blueprints/stylish-press/blueprints/stylish-press/stylish-press-theme/style.css" | ||
} | ||
}, | ||
{ | ||
"step": "writeFile", | ||
"path": "/wordpress/wp-content/themes/stylish-press-theme/theme.json", | ||
"data": { | ||
"resource": "url", | ||
"url": "https://raw.githubusercontent.com/wordpress/blueprints/stylish-press/blueprints/stylish-press/stylish-press-theme/theme.json" | ||
} | ||
}, | ||
{ | ||
"step": "writeFile", | ||
"path": "/wordpress/wp-content/themes/stylish-press-theme/functions.php", | ||
"data": { | ||
"resource": "url", | ||
"url": "https://raw.githubusercontent.com/wordpress/blueprints/stylish-press/blueprints/stylish-press/stylish-press-theme/functions.php" | ||
} | ||
}, | ||
{ | ||
"step": "mkdir", | ||
"path": "/wordpress/wp-content/themes/stylish-press-theme/parts" | ||
}, | ||
{ | ||
"step": "writeFile", | ||
"path": "/wordpress/wp-content/themes/stylish-press-theme/parts/header.html", | ||
"data": { | ||
"resource": "url", | ||
"url": "https://raw.githubusercontent.com/wordpress/blueprints/stylish-press/blueprints/stylish-press/stylish-press-theme/parts/header.html" | ||
} | ||
}, | ||
{ | ||
"step": "activateTheme", | ||
"themeFolderName": "stylish-press-theme" | ||
}, | ||
{ | ||
"step": "login", | ||
"username": "admin", | ||
"password": "password" | ||
} | ||
] | ||
} |
Oops, something went wrong.