• Resolved maestrominded

    (@maestrominded)


    Hi,

    I’ve googled for days without finding a solution, so I hope that you can help me out.

    When adding [audio mp3="http:/xxx.mp3" autoplay="yes"][/audio] in the page, nothing shows up on the page, however, the music starts to play..

    example:
    https://www.maestrominded.com/music/

    Can anybody help me with this? I would really want people to be able to click on songs to listen.

    //Maestro

Viewing 4 replies - 1 through 4 (of 4 total)
  • Jon (Kenshino)

    (@kenshino)

    Lord Jon

    You don’t need the [/audio]

    Use the shortcode correctly or just paste the link to make use of WordPress’ auto embed system.

    https://codex.www.ads-software.com/Audio_Shortcode

    Somehow your code is removing the visibility of the player. It is there but not visible.

    Thread Starter maestrominded

    (@maestrominded)

    I’ve resolved it, I had to look into the code (media.php) to work it out…

    “visibility: hidden” needs to be removed from the code… (make sure to save a backup of the file before)…

    $html_atts = array(
    		'class'    => apply_filters( 'wp_audio_shortcode_class', 'wp-audio-shortcode' ),
    		'id'       => sprintf( 'audio-%d-%d', $post_id, $instances ),
    		'loop'     => wp_validate_boolean( $atts['loop'] ),
    		'autoplay' => wp_validate_boolean( $atts['autoplay'] ),
    		'preload'  => $atts['preload'],
    		'style'    => 'width: 100%; visibility: hidden;',
    	);

    Hello, In my site the audio file is not playing. It is visible but not playing. Even in media library also it is not playing. Pls help.
    https://www.iphoneringtones.in

    Hello, In my site the audio file is not playing. It is visible but not playing. Even in media library also it is not playing. Pls help.
    https://www.iphoneringtones.in

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘WP built in audio player doesn't work properly’ is closed to new replies.