Skip to main content

DeprecatedFilter

Discourages using deprecated filters in themes.


The following examples contain code snippets that either fail or pass this check.

.site-footer p {
color: {{ settings.color_name | hex_to_rgba: 0.5 }};
}

.site-footer p {
color: {{ settings.color_name | color_modify: 'alpha', 0.5 }};
}

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.


The following example contains the default configuration for this check:

DeprecatedFilter:
enabled: true
severity: warning
ParameterDescription
enabledWhether the check is enabled.
severityThe severity of the check.

Anchor to Disabling this checkDisabling this check

Disabling this check isn't recommended.


Was this page helpful?