faced such a problem. On my landing page I implemented multilingualism on WordPress. I want to highlight the active language if its version is now selected. That is, if now www.site.ru/en - the en language was highlighted (that is, the active class was added to it). I tried using js, but nothing intelligible happened. Also tried using PHP,
<?php get_field('language') == 'ru' ? 'languague__link-active' : '' ?>
This code is inserted into the class attribute, but it does not want to work. Tell me how can I solve this problem?
get_field('language')
- DaemonHK