| 开发者 | progryss |
|---|---|
| 更新时间 | 2026年11月26日 13:25 |
| PHP版本: | 7.4 及以上 |
| WordPress版本: | 7.2 |
| 版权: | GPLv2 or later |
| 版权网址: | 版权信息 |
|, and see a live preview of the table as you type.[sizy_size_chart] shows a "Size guide" link that opens the chart in a popup. [sizy_size_chart_table] shows the chart directly on the page.<dialog>: Esc closes it and keyboard focus stays inside. CSS loads only on pages that show a chart, and JavaScript only where there's a popup. Wide tables scroll sideways with the size column pinned.| ("Trousers" above) becomes that table's title.[sizy_size_chart]: a link that opens the size guide in a popup. Attributes: label (link text), title (popup heading), product_id.[sizy_size_chart_table]: the size guide directly on the page. Attributes: title (optional heading), product_id.product_id defaults to the current product. If the product has no size guide, both shortcodes output nothing, so they're safe to use in a template shared by every product. From PHP: echo do_shortcode( '[sizy_size_chart]' );, for example on the woocommerce_single_product_summary action.
For developers
sizy_chart_id( $chart_id, $product_id ): change which size guide a product shows.sizy_table_html( $html, $chart_id, $product_id ): change the rendered tables..sizy, .sizy-modal: --sizy-head-bg, --sizy-head-text, --sizy-stripe, --sizy-border, --sizy-radius.[sizy_size_chart] or [sizy_size_chart_table] to your product template, a product tab or a page-builder block.Wherever you place one of the shortcodes. Sizy doesn't add anything to your pages by itself, so it works with any theme or page builder.
No. Variations use the size guide of their parent product. Link the parent (or simple) product's SKU.
Moving a size guide to the bin hides it on the store. Deleting it permanently removes it from every product that used it.
No. Size guides are kept so a reinstall picks them up again. To remove everything, add define( 'SIZY_DELETE_ON_UNINSTALL', true ); to wp-config.php before deleting the plugin.
Yes. Sizy doesn't touch orders and declares compatibility with WooCommerce High-Performance Order Storage.