Missing Enable Comment
Deprecated
This check only exists in Theme Check v1.X.X.
Deprecated:
This check only exists in Theme Check v1.X.X.
Makes sure that when theme-check-disable is used in the middle of a template, the corresponding theme-check-enable comment is also present.
Anchor to ExamplesExamples
The following examples contain code snippets that either fail or pass this check.
Anchor to ✗ Fail✗ Fail
<html>
<head>
{% # theme-check-disable ParserBlockingJavaScript %}
<script src="https://cdnjs.com/jquery.min.js"></script>
</head>
<body>
<!-- ... -->
</body>
</html>
Anchor to ✓ Pass✓ Pass
<html>
<head>
{% # theme-check-disable ParserBlockingJavaScript %}
<script src="https://cdnjs.com/jquery.min.js"></script>
{% # theme-check-enable ParserBlockingJavaScript %}
</head>
<body>
<!-- ... -->
</body>
</html>
Anchor to Disabling this checkDisabling this check
Disabling this check isn't recommended because Theme Check might not run on large sections of your code.
Was this page helpful?