I am using Berlin Theme and I can’t enable only language selector on header. Is appearing only with country/region selector, but when i disable country/region selector then language selector is also disappearing.
Is only chance to make it together?
I checked Berlin theme and it seems that there is a problem with this expression evaluation in the file header.liquid
{%- if section.settings.enable_country_selector and localization.available_countries.size > 1 or section.settings.enable_language_selector and localization.available_languages.size > 1 -%}
you can try to replace it with the following, that I verified it works well when only the country selector is not enabled.
{% liquid
assign any_selector_enabled = false
if section.settings.enable_country_selector and localization.available_countries.size > 1
assign any_selector_enabled = true
endif
if section.settings.enable_language_selector and localization.available_languages.size > 1
assign any_selector_enabled = true
endif
%}
{%- if any_selector_enabled -%}