Okay
  Public Ticket #3014868
Single Button integration
Closed

Comments

  • Andrew started the conversation

    Hi there,

    I have been struggling all day to create a single "Play Example" button shortcode that will allow me to copy/paste an mp3 URL and a title into the shortcode. Can someone post the shortcode for the button below? I found it on the Sonaar website... https://sonaar.io/mp3-audio-player-pro/music-player-for-wordpress/examples/

    It's ok if the button has a fixed title... if so, "Play Example" or "Play Track" would be fine. Otherwise, the criteria I'd need would be:

    • Track url
    • color
    • play on the sticky player
    • title (if possible) the button would display the title

    I'm doing this with Avada theme builder, and have to use Guttenberg editor to get all the features... but I cannot for the life of me figure out how to creat a button. Or better yet... is there a page that has all the shortcodes for the examples they use?

    Thanks a ton!!

    Merci!

    Andrew K

  •  1,103
    Max replied

    Hi,

    the player you see on our website have been designed with Elementor which gives you so more flexibility than any other page builder and shortcodes. 

    The play button has been designed with the Elementor widget button, not a shortcode.

    If you are using shortcode, you wont be able to design a button to play a track URL...(If you use shortcode to display the player, see all our shortcode attributes available. )

    The closest thing we can have is to use our shortcode [sonaar_ts] in a text to convert it to a play link. View documentation about sonaar_ts. You might be able to custom CSS it in a button look.

    The other workaround I can think of is to use our javascript API to start a sticky player when you click an element..(eg: an image, a button image, a button, etc..)




    Thanks,


    Max from the Sonaar.io Crew

  • Andrew replied

    OK. I wish there was a page that had an example code for each example you have.  

    In Avada, this was the most simple one I could create.. for a song called "Into The Mist":

    I wasn't able to do it with simple URLs and a Title, so I had to use a player ID:


    <!-- wp:sonaar/sonaar-block {"album_id":["3341"],"show_tracks_count":"false","show_meta_duration":"false","show_publish_date":"false","playlist_hide_artwork":true,"hide_trackdesc":true,"playlist_show_soundwave":true,"title_btshow":true,"subtitle_btshow":true,"trackdesc_fontsize":12,"hide_number_btshow":true,"hide_time_duration":true,"tracklist_controls_size":33} /-->

    Cheers,

    Andrew K