Start a conversation

Setting a Theme for Quilt Template

In this guide, you will learn how to set a theme for a quilt page.

In addition to having a default theme, you can set a theme for any quilt template based on your preference.

To set a theme for a quilt template, you should make a setThemeForQuiltTemplate mutation.

In the backend, the mutation requires only the themeId and quiltId to process and set the theme.

Query

mutation setThemeForQuiltTemplate($themeId: String!, $quiltId: String!){    
  setThemeForQuiltTemplate(themeId: $themeId, quiltId: $quiltId){
        result
        errors{
            __typename
            ... on ThemeNotFoundError {
                message
                fields
                themeId
            }
            ... on QuiltNotFoundError {
                message
                fields
                quiltId
            }
            ... on PermissionDeniedError {
                message
                fields
            }
        }
    }
}

Variables

{
  "themeId": "myAwesomeTheme",
  "quiltId": "CategoryPage"
}
Choose files or drag and drop files
Was this article helpful?
Yes
No
  1. ATLAS

  2. Posted
  3. Updated

Comments