Skip to main content

Can I bulk replace theme source code?

 

You can bulk replace theme source code in the Smart Themes Editor, which opens when you click Edit in ThemesSaved themes.

Learn more

How to bulk replace theme source code

  1. Go to ThemesSaved themes.
  2. Click Edit for the theme you want to modify.
  3. In the Smart Themes Editor, click Find/change source in the upper right corner to activate the bulk replace feature.
  4. Enter the source code to search for in the Find field, enter the replacement in the Replace with field, then click Bulk replace.
  5. Check that the source code has been correctly replaced.

 

About the bulk replace feature

  1. Scope
    - Set the scope for bulk replacement.
    - Current file: Replace within the file currently being edited.
    - All open files: Search and replace across all open files.
  2. Options
    - Match case: When selected, searches are case-sensitive.
    Example: If the search term is “$cafe24”, only “$cafe24” will be found and replaced. (“$CAFE24” or “$Cafe24” will not be matched.)
  3. Bulk replace
    - If no replacement text is entered, the searched text will be replaced with a blank.
    - Remember to save after bulk replacement for changes to apply to your storefront.

 

How to restore theme source code

If you need to restore the code to its state before the changes, you can use the History feature at the top of the Smart Themes Editor to revert to a recent version.

 

Was this page helpful?
On this page