Add style to a class if another class has a certain class

jQuery(document).ready(function($) {
	if ( $('body').hasClass('logged-in') ) {
		$('.sharing').css({ display: "none" });
	}
});

 

Leave a Reply

Your email address will not be published. Required fields are marked *