Skip to main content
All CollectionsLook and FeelTheme Tweaker (X-Cart 5.4.x and earlier)
Adding New Templates via Template Editor (X-Cart 5.4.x and earlier)
Adding New Templates via Template Editor (X-Cart 5.4.x and earlier)

Learn how to create a custom template directly in the storefront.

Olga Tereshina avatar
Written by Olga Tereshina
Updated over 2 years ago

Using the Template Editor facilities, it is possible to add new templates directly in the storefront.

For this purpose:

  1. When logged in as a store administrator, open the Template Editor tool in the storefront.

    541-template-editor-on.png

  2. Navigating through the templates tree to the left, find the location to add a new template.

    541-template-editor-tree.png

  3. Click the + (plus) icon within the necessary directory.

    541-template-editor-add-new.png

  4. Specify the position and the name of a custom template in the blank line that opens.

    541-template-editor-add-new-blank.png


    The file position is a numeric value that defines the order of the templates’ representation. The greater the number is, the lower the file will be.

  5. Click Enter to create a template.

  6. Add your custom code to the file content field that opens to the right.

    541-template-editor-test-add-code.png

  7. Click Save.

The custom file will add to the templates’ tree to the left.

541-template-editor-test-created.png

It will also record in the list of customized templates in your store Admin area (Look & Feel > Edited Templates).

541-tempalte-editor-test-admin.png

Now you can maintain this custom template the same way as any template in your store.

If you need to cancel the changes introduced by a custom template, use the Trash icon in front of it in the Template Editor tool, then click Save. This removes the template from the storefront.

To delete a template completely, use the facilities of the list of customized templates in your store Admin area (Look & Feel > Edited Templates).

Related pages:

Did this answer your question?