WordPress Customizer: Check for value of CSS selector and replace it
You’re using a selector in this: if ( $( ‘#customizer-preview .site-title’ ).length > 0 ) { $( ‘#customizer-preview .site-title’ ).remove(); } It’s just like styling CSS property, if you were to add that rule to a style sheet, it would add styles for the element #customizer-preview .site-title So the code above is saying if an … Read more