Theme editor - new attribute flags available
ImprovementTheme editorWe've added two new attribute flags, in addition to the many 'tag flags' already available.
Unlike Tag Flags, which wrap the output of a template variable within the declared HTML tag, attribute tags wrap the output within one of two currently supported HTML attributes.
The two supported attributes are:
- href, and
- aria-label
These flags can be used in the following manner, within any HTML file within an Easy Eatery theme:
- {@globals.site.url --href},
- {@globals.site.name --aria-label}
And would output:
- href="https://easyeatery.co.uk", and
- aria-label="Easy Eatery"
We've discovered that having these kind of attribute flags prove useful when you have conditional content on a page and don't want to include HTML markup that has no purpose in that particular instance.