Font Picker

Serhii-Kre
New Member
3 0 0

If in settings:

"type": "font_picker",

"id": "type_header_font",

then I can get the velue

{%- assign header_font = settings.type_header_font -%}

Problem : it works only with default Debut theme "type_header_font" If I change the name , for example, "new_header_font" then I can't get the value by settings.new_header_font

Question: do you have maybe kind of Cache clearing, or time delay for the code to be applied ,or something to apply new code ?

0 Likes
bdowling
Explorer
66 13 39

My only guess is the ID is conflicting with another one. Did you search through your settings_data.json values or try a more unusual id?

0 Likes
Serhii-Kre
New Member
3 0 0

That is the problem that works only with default Debut theme id.
If you try to change id , it stops working ) 

0 Likes
bdowling
Explorer
66 13 39

I just tried for myself in Debut. I WAS able to access the font after changing to the new ID. I even tested with an invalid ID and it failed.

That really makes me think you've introduced a bug somewhere. Have you made changes to the "settings_schema.json" or "settings_data.json" that you may have forgotten about?

0 Likes
Serhii-Kre
New Member
3 0 0

Thank you, I'll double check again

0 Likes