Skip to content

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

@ashleyshaw

Description

@ashleyshaw

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:

  • index
  • home
  • front-page
  • singular
  • single
  • page
  • archive
  • category
  • tag
  • 404

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

Additional Considerations

  • Usability: Keep the number of templates and template parts manageable to avoid overwhelming users with too many choices.
  • Naming Conventions: Use clear and descriptive naming conventions for all patterns, template parts, and templates to ensure they are easily discoverable in the editor.
  • Compliance: Ensure all patterns and templates comply with WordPress.org guidelines to maintain compatibility and high standards for the LSX Design theme.

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!

Metadata

Metadata

Labels

No labels
No labels

Type

Projects

Status

📥 Todo

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions