lightspeedwp / lsx-design

A WordPress Block theme designed to work seamlessly with WooCommerce, supported by a Figma Design System.
https://lsx.design
GNU General Public License v3.0
26 stars 0 forks source link

Define categories for Patterns, Template Parts, and Templates #167

Open ashleyshaw opened 1 month ago

ashleyshaw commented 1 month ago

Summary

This issue focuses on defining the patterns, template parts, and templates that will be available in the LSX Design theme. The goal is to create a streamlined structure that enhances usability while adhering to WordPress.org guidelines, which prohibit the inclusion of custom blocks.

Key Objectives

  1. Pattern Registration and Categorization

    • Create and register custom patterns specifically designed for the LSX Design theme.
    • Ensure each pattern is properly categorized for easy discovery within the WordPress editor.
    • Consider including starter patterns to help users quickly build out pages with predefined layouts.
  2. Custom Template Parts

    • Develop custom template parts that can be reused across different templates within the LSX Design theme.
    • Ensure template parts are named and labelled clearly to make them easily identifiable when working in the editor.
  3. Custom Templates

    • Register custom templates using the customTemplates property in the theme.json file. Each template should be defined with the following properties:
      • name: The name of the template file without the file extension.
      • title: A human-readable title for the template.
      • postTypes: An array of post type slugs that the template is usable on (optional, defaults to page if not specified).
    • Save each custom template in the theme's /templates folder, ensuring that they are properly labelled for easy selection.

Supported Template Types

The following template types should be considered for the LSX Design theme:

Refer to the Template Hierarchy documentation for a complete list of available template types.

Additional Considerations

Developer Documentation References

Additional Context

The goal is to provide a user-friendly experience for anyone using the LSX Design theme by offering well-organized and easily accessible patterns, template parts, and templates that enhance the design capabilities of the theme.

Let me know if there are any adjustments or additions needed for this issue!