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
<!-- wp:template-part {"slug":"header","tagName":"header"} /--> | |
<!-- wp:group {"tagName":"main","align":"full","layout":{"inherit":true}} --> | |
<main class="wp-block-group alignfull"><!-- wp:woocommerce/checkout {"align":"wide"} --> | |
<div class="wp-block-woocommerce-checkout alignwide wc-block-checkout is-loading"><!-- wp:woocommerce/checkout-fields-block --> | |
<div class="wp-block-woocommerce-checkout-fields-block"><!-- wp:woocommerce/checkout-express-payment-block --> | |
<div class="wp-block-woocommerce-checkout-express-payment-block"></div> | |
<!-- /wp:woocommerce/checkout-express-payment-block --> | |
<!-- wp:woocommerce/checkout-contact-information-block --> |
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
<!-- wp:paragraph {"backgroundColor":"white"} --> | |
<p class="has-white-background-color has-background">Default, no block spacing set:</p> | |
<!-- /wp:paragraph --> | |
<!-- wp:navigation {"ref":1844} /--> | |
<!-- wp:buttons --> | |
<div class="wp-block-buttons"><!-- wp:button --> | |
<div class="wp-block-button"><a class="wp-block-button__link wp-element-button">button -does it align with the menu items?</a></div> | |
<!-- /wp:button --></div> |
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
-enqueue the JS file with the enqueue_block_editor_assets hook. | |
JS file: | |
function removeAlignment( settings, name ) { | |
if ( name !== 'core/group' ) { | |
return settings; | |
} |
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
<?php | |
/** | |
* @package block reference | |
*/ | |
/** | |
* Register the custom post type | |
* @since 2.0.0 | |
*/ | |
function block_reference_register_block_post_type() { |
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
// Add Level taxonomy to pages. | |
function fsecom_register_taxonomy_level() { | |
$labels = array( | |
'name' => _x( 'Level', 'taxonomy general name' ), | |
'singular_name' => _x( 'Level', 'taxonomy singular name' ), | |
'search_items' => __( 'Search Levels' ), | |
'all_items' => __( 'All Levels' ), | |
'edit_item' => __( 'Edit Level' ), | |
'update_item' => __( 'Update Level' ), | |
'add_new_item' => __( 'Add New Level' ), |
OlderNewer