Sorry, we don't support your browser.  Install a modern browser

Add custom class to field in panel via blueprint

I do a fair bit of customization of the panel via CSS. It would be much easier (and feel a bit less hacky) if I could pass a custom class to a field via the bluepirnt, eg.

headline:
    type: text
    class: '.custom-class'
2 months ago

@Jamie Hunter You might be already aware of this workaround but also leaving it for others who come across this: Kirby does apply some CSS classes by default, e.g. .k-field-name-YOURFIELDNAME. If you only want to style a field with that name on a specific blueprint, you can combine it with .k-panel[data-template="YOURTEMPLATENAME"].

23 days ago