Skip to main content

Change the Scope of a Component

Change the Scope in a Component in the Super Template

You can change the scope of any component in a page that uses the Super Template, and includes your component in a slot.

  1. From the Pages tab in the CleanSlate admin, hover over your page, and click Properties.
  2. Click the Slots tab.
  3. Click on the slot that contains the component you wish to edit.
  4. Click the “Sitewide” option.
  5. Click Save.

Change the Scope in a Component in Your Theme

You can set the scope of any component in your theme by including a scope parameter in a partial, as follows:

{% render "components/my-component" scope: "site" %}

Be Careful!

Changing the scope of a component will override the content of any other component on your site that has the same name and instance number. If you don’t want that to happen, make sure the either the name or instance number of the component you’re adding is unique.