diff --git a/plugins/language_switch/flags.tpl b/plugins/language_switch/flags.tpl
index 06d438550..6d51cad38 100644
--- a/plugins/language_switch/flags.tpl
+++ b/plugins/language_switch/flags.tpl
@@ -34,7 +34,7 @@
{html_head}
-{if $themeconf.template=='yoga' and $themeconf.theme=='Sylvia'}
+{if $themeconf.name == 'Sylvia'}
{else}