-
Notifications
You must be signed in to change notification settings - Fork 4
Open
Description
Description
Transition the contact details section (address and phone) from the Customizer to a Full Site Editing (FSE)-compatible structure. This includes creating block patterns for ease of use, while retaining the existing Customizer fields for backward compatibility.
Tasks
-
Analyze the current Customizer fields:
dro_pizza_adress_infosdro_pizza_phone_infos
-
Create a block pattern for the contact information:
- Include fields for
AddressandPhone. - Add placeholder text where users can input their details.
- Include fields for
-
Register the block pattern in the theme:
- Use
register_block_pattern()to include the new block pattern in the editor.
- Use
-
Retain the Customizer fields for backward compatibility:
- Ensure existing options (
dro_pizza_adress_infosanddro_pizza_phone_infos) can still be accessed and dynamically loaded into the block editor.
- Ensure existing options (
-
Test the new implementation:
- Verify that the block pattern works seamlessly in the block editor.
- Ensure backward compatibility by testing with existing saved options.
Acceptance Criteria
- A new block pattern for contact information is created and registered.
- The block pattern is fully functional in the editor.
- Existing Customizer options (
dro_pizza_adress_infosanddro_pizza_phone_infos) are retained and dynamically supported. - Comprehensive testing is completed, with no loss of data or functionality.
Notes
Consider documenting the changes and guiding users on how to update their contact information in the new FSE format.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels