I needed to add the code into Doc-head-core.liquid, but you might need to add the code somewhere else, like theme.liquid
This is the top of my theme.liquid - and this line ( {%- render ‘doc-head-core’ -%} ) is how I knew I needed to change doc-head-core.liquid:
{%- liquid
assign rtl_langs = ‘ar,arc,dv,fa,ha,he,khw,ks,ku,ps,ur,yi’ | split: ‘,’
assign current_lang = localization.language.iso_code | split: ‘-’ | first
if rtl_langs contains current_lang
assign lang_dir = ‘rtl’
else
assign lang_dir = ‘ltr’
endif
-%}
What code do you have in your of theme.liquid ?