I am attempting to use CSS (display: none;) within a script to hide elements from my menu only if a specific language is active. When the body class changes from one language to another, I want the script to check if the body class of a certain language is active in order to execute CSS display: none or display: block accordingly. I have already tried placing the script at the bottom of the footer, but it doesn't seem to be working...
$('body').hasClass('translatepress-ru_RU') {
$("#menu-item-17728").css("display","none");
}