DeprecatedFilter
Discourages using deprecated filters in themes.
Anchor to ExamplesExamples
The following examples contain code snippets that either fail or pass this check.
Anchor to ✗ Fail✗ Fail
.site-footer p {
color: {{ settings.color_name | hex_to_rgba: 0.5 }};
}
Anchor to ✓ Pass✓ Pass
.site-footer p {
color: {{ settings.color_name | color_modify: 'alpha', 0.5 }};
}
Anchor to Auto-correctionAuto-correction
Theme Check can correct usage of the deprecated img_url
filter using the --auto-correct
flag. When the flag is specified, Theme Check automatically replaces instances of img_url
with image_url
where possible.
Anchor to OptionsOptions
The following example contains the default configuration for this check:
DeprecatedFilter
enabledtrue
severity warning
Parameter | Description |
---|---|
enabled | Whether the check is enabled. |
severity | The severity of the check. |
Anchor to Disabling this checkDisabling this check
Disabling this check isn't recommended.
Was this page helpful?