← Back
Editing: block.json
{ "name": "woocommerce/product-price", "title": "Product Price", "description": "Display the price of a product.", "category": "woocommerce-product-elements", "attributes": { "productId": { "type": "number", "default": 0 }, "textAlign": { "type": "string", "default": "" } }, "usesContext": [ "query", "queryId", "postId" ], "keywords": [ "WooCommerce" ], "textdomain": "woocommerce", "apiVersion": 3, "supports": { "html": false, "interactivity": true, "color": { "text": true, "background": true, "link": false, "__experimentalSkipSerialization": true }, "typography": { "fontSize": true, "lineHeight": true, "__experimentalFontFamily": true, "__experimentalFontWeight": true, "__experimentalFontStyle": true, "__experimentalLetterSpacing": true, "__experimentalSkipSerialization": true }, "email": true, "spacing": { "margin": true, "padding": true, "__experimentalSkipSerialization": [ "padding" ] } }, "selectors": { "root": ".wp-block-woocommerce-product-price .wc-block-components-product-price", "spacing": { "margin": ".wp-block-woocommerce-product-price", "padding": ".wp-block-woocommerce-product-price .wc-block-components-product-price" } }, "ancestor": [ "woocommerce/all-products", "woocommerce/featured-product", "woocommerce/single-product", "woocommerce/product-template", "core/post-template" ], "style": "file:../product-price.css", "$schema": "https://schemas.wp.org/trunk/block.json" }
Save File
Cancel