Disabling Locksmith for certain theme files
How to tell Locksmith to completely ignore specific files in your theme
Locksmith does its work by adding its code to your theme's files. Sometimes you may want to keep Locksmith from modifying a file in particular, whether it's for a customization, or some other reason.
To support this, Locksmith has a "Liquid assets to ignore" option.
To configure it, head to the "Settings" page:
And then edit the file list under Advanced > Liquid assets to ignore:
You'll notice that some files are added by default.
Note: Use full file names. (e.g. "sections/collection-list.liquid" or "templates/gift_card.liquid"), and enter them one per line.
Please note: If you need to use the ignore list because Locksmith is causing unexpected problems with your theme, please let us know! Feel free to use the ignore list for any purpose, but do get in touch at [email protected] if there's a bug we can help resolve. :)
Copy link