How to remove the content in one of the languages?

Developed a wordpress site multilingual using polylang. Is it possible to make on the Russian version of the site was block, and in English this unit has been hidden due to the lack of translation? If Yes, then tell me how
March 23rd 20 at 18:44
1 answer
March 23rd 20 at 18:46
Solution
you can do a check on what language is selected

<?php
 if(get_locale() == 'en_GB'):
?>
here the block
<?php endif; ?>


or

<?php
 if(pll_current_language() == 'EN'):
?>
here the block
<?php endif; ?>
and what to do with the unit that must be removed? how to register hide? - Cordie67 commented on March 23rd 20 at 18:49
@Cordie67, just set to have the block visible only in the desired language - joan.Williams commented on March 23rd 20 at 18:52
@joan.Williams, understand that what you sent if you specify a block there, it will be only one version? - Cordie67 commented on March 23rd 20 at 18:55
@Cordie67, Yes, only the language on your change - joan.Williams commented on March 23rd 20 at 18:58

Find more questions by tags WordPress