I'm trying to create an if so if one div is visible, another disappears (in a wordpress template):
jQuery(document).ready(function($){
if($('.classe1').is(':visible'){
$('.classe2').hide();
}
});
But you are not being recognized, what can I do?