Skip to content

Commit

Permalink
Stylish Press Blueprint: A Woo store with custom theme, content, and …
Browse files Browse the repository at this point in the history
…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
adamziel authored Jun 5, 2024
1 parent 7b4b1ac commit 73b50b1
Show file tree
Hide file tree
Showing 29 changed files with 5,385 additions and 0 deletions.
120 changes: 120 additions & 0 deletions blueprints/stylish-press/blueprint.json
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"
}
]
}
Loading

0 comments on commit 73b50b1

Please sign in to comment.