• Resolved edwardsolovey

    (@edwardsolovey)


    Hello. I need help. I want to replace the Soundcloud widget with MP3 Music Player by Sonaar. I ran into a problem while testing the player. I am using the DIVI theme for WordPress. The blog (https://soundaudio.cc/browse-music/) shows previews of posts. When previewing messages, Sonaar’s MP3 Music Player displays well on the first page of the blog, but if you go to the next page or another, the player disappears, leaving an empty space in its place. In addition, if you go back to the first page of the blog, the player will also disappear from the first page. Now I do not use the player, because I cannot understand the essence of the problem, but if I manage to solve the problem, I will completely switch to MP3 Music Player from Sonaar – Pro version. Please help me figure it out

    The page I need help with: [log in to see the link]

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author sonaar

    (@sonaar)

    Hi,

    Are using using our shortcode? Please read this article for tutorials to get started with our MP3 Player and see list of shortcodes available https://sonaar.ticksy.com/article/15282

    I don’t quite understand what you mean by “When previewing messages”
    If you want a continuous audio playback, then you will need to buy the pro version. Continuous Sticky player is only available in the pro version.

    Thread Starter edwardsolovey

    (@edwardsolovey)

    I filmed a short video that will clearly show my problem. https://drive.google.com/file/d/1VKsrr6Ui-S6jl7VjCd5NM33w1QXwaz4O/view?usp=sharing. Yes, I am using a shortcode for the player. Thanks to the article, but I couldn’t find a solution for myself. “Previewing messages” is a preview of the post content in a dynamic blog carousel. I don’t need a sticky player yet, I need a separate player in each post.

    Plugin Author sonaar

    (@sonaar)

    Hi,
    Ok, thats because your plugin is using ajax to load the item. You will need a bit of custom JS. Here is an HTML code that you need to add somewhere in your page.

    <script type="text/javascript">
    jQuery('.wp-pagenavi a').on('click', function(){
    setTimeout(function(){
    setIronAudioplayers();
     }, 500);
    })
    </script>

    This script add a JS function on your pagination and once clicked, it will init the audio players.

    Thread Starter edwardsolovey

    (@edwardsolovey)

    Hello. Here’s what happened: https://drive.google.com/file/d/1he4x7u2UiarTKViSAjIlyflS3iNv0aPl/view?usp=sharing
    I added your suggested code to the end of the sidebar at https://soundaudio.cc/browse-music/. I also tried adding the code separately to the posts, and on the theme code integration page for the whole site. No result. Maybe I’m adding it to the wrong place? I’m new to this thread, sorry. What could be the reason for the lack of results?

    Plugin Author sonaar

    (@sonaar)

    Please open a support ticket on our helpdesk at https://support.sonaar.io and we will check this for you with a closer step.

    Thread Starter edwardsolovey

    (@edwardsolovey)

    The following code has been added to my site in the DIVI theme code integration section:

    <script type="text/javascript">
    function initPaginationforSonaar(){
    jQuery('.wp-pagenavi a').on('click', function(){
    setTimeout(function(){
    setIronAudioplayers();
    initPaginationforSonaar();
     }, 5000);
    })
    }
    initPaginationforSonaar();
    </script>

    Thanks a lot to the developers and support of MP3 Music Player by Sonaar!

Viewing 6 replies - 1 through 6 (of 6 total)

The topic ‘The player disappears in the blog when changing the navigation page’ is closed to new replies.