Last active
January 22, 2023 13:58
-
-
Save karks88/f17673b239d7082a76a37913c4aec341 to your computer and use it in GitHub Desktop.
A sample WordPress block template part
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 Block Template Part Support: https://learn.wordpress.org/tutorial/using-block-template-parts-in-classic-themes/ | |
function add_block_template_part_support() { | |
add_theme_support( 'block-template-parts' ); | |
} | |
add_action( 'after_setup_theme', 'add_block_template_part_support' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment