0
0
Wordpressframework~10 mins

Full Site Editing basics in Wordpress - Interactive Code Practice

Choose your learning style9 modes available
Practice - 5 Tasks
Answer the questions below
1fill in blank
easy

Complete the code to register a block template part in Full Site Editing.

Wordpress
register_block_template_part( '[1]', array( 'slug' => 'header' ) );
Drag options to blanks, or click blank then click option'
Aheader
Bfooter
Csidebar
Dcontent
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'footer' or 'sidebar' instead of 'header' will register the wrong template part.
Leaving the blank empty causes a syntax error.
2fill in blank
medium

Complete the code to add a block theme support for Full Site Editing.

Wordpress
add_theme_support( '[1]' );
Drag options to blanks, or click blank then click option'
Amenus
Bpost-thumbnails
Ccustom-logo
Dblock-templates
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'custom-logo' or 'menus' does not enable Full Site Editing.
Forgetting to add this support disables block templates.
3fill in blank
hard

Fix the error in the code to correctly register a block template part with a slug.

Wordpress
register_block_template_part( 'footer', array( 'slug' => [1] ) );
Drag options to blanks, or click blank then click option'
A'footer'
B'sidebar'
C'header'
D'content'
Attempts:
3 left
💡 Hint
Common Mistakes
Using a different slug than the template part name causes registration errors.
Omitting quotes around the slug causes syntax errors.
4fill in blank
hard

Fill both blanks to create a block template part registration for the sidebar with a description.

Wordpress
register_block_template_part( '[1]', array( 'slug' => '[2]', 'description' => 'Site sidebar' ) );
Drag options to blanks, or click blank then click option'
Asidebar
Bheader
Cfooter
Dcontent
Attempts:
3 left
💡 Hint
Common Mistakes
Using different values for name and slug causes errors.
Using 'header' or 'footer' instead of 'sidebar' registers the wrong part.
5fill in blank
hard

Fill all three blanks to create a block template part registration for the content area with a slug and description.

Wordpress
register_block_template_part( '[1]', array( 'slug' => '[2]', 'description' => '[3]' ) );
Drag options to blanks, or click blank then click option'
Acontent
Bmain-content
CMain site content area
Dsidebar
Attempts:
3 left
💡 Hint
Common Mistakes
Using the same value for slug and description causes confusion.
Leaving description blank makes the part less clear.