Skip to content

Migrate Contact Info Settings to FSE-Compatible Structure #7

@younes-dro

Description

@younes-dro

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

  1. Analyze the current Customizer fields:

    • dro_pizza_adress_infos
    • dro_pizza_phone_infos
  2. Create a block pattern for the contact information:

    • Include fields for Address and Phone.
    • Add placeholder text where users can input their details.
  3. Register the block pattern in the theme:

    • Use register_block_pattern() to include the new block pattern in the editor.
  4. Retain the Customizer fields for backward compatibility:

    • Ensure existing options (dro_pizza_adress_infos and dro_pizza_phone_infos) can still be accessed and dynamically loaded into the block editor.
  5. 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_infos and dro_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.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions