• I did some customization (size and color) of the native WordPress audio layer but the default appearance loads first and then changes to the customized version. How do I prevent the default appearance from loading first or being visible at all?

    Thanks,

    Cindy

Viewing 1 replies (of 1 total)
  • Set its style to display: none;, then put in some jQuery to set display: block; after the page has loaded.

    jQuery( document ).ready( function( $ ) {
      if( jQuery( "#audio_player" ).length ) { // is it present in the page?
       // yes, so change display property
       document.getElementById( "audio_player" ).style.display = "block"; 
Viewing 1 replies (of 1 total)
  • The topic ‘Audio Player Loads Default Appearance First’ is closed to new replies.