How to read Form metadata for a custom theme?

What is the right way to read the metadata saved from a form in a custom theme under the admin panel? I have found where my data are saved (user/config/themes/mytheme.yaml) and now I’m looking for the best way to read them back, from a .twig template for example. Thanks in advance for your help!

A new Grav lover!

Something like {% if config.themes.mytheme.myfield %} ?

That simple? Thanks for your reply, I’ll play with that and will let you know about my testing results.

Thanks Flaviocopes :slight_smile: That was exactly what I was looking for. Here’s my code snippet to display the text string which contains the Site Title that has been saved thru my theme form in the Admin panel:

{% if config.themes.mytheme.branding.site.title %}
{{ config.themes.mytheme.branding.site.title }}
{% endif %}