Okay
  Public Ticket #2781526
The player disappears in the blog when changing the navigation page
Closed

Comments

  • Ed Solovey started the conversation

    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. When using pagination, the player disappears when switching to the next or another page, as well as when returning to the first page. I filmed a short video that will clearly show my problem. https://drive.google.com/file/d/1VKsrr6Ui-S6jl7VjCd5NM33w1QXwaz4O/view?usp=sharing.
    I also wrote to support at https://wordpress.org/support/topic/the-player-disappears-in-the-blog-when-changing-the-navigation-page/#post-14460452. You can read the history of the correspondence in which I was advised to contact you. I would be grateful for your help

  •  529
    Max replied

    Hi, 

    Could you please provide me access to your wp-admin and I will gladly check the issue you have.

    Thanks,


    Max from the Sonaar.io Crew

  •   Ed Solovey replied privately
  •  529
    Max replied

    Hi,

    Where have you set your player exactly? I cant see any player here: https://soundaudio.cc/browse-music/

    Could you please set it up so I can see it and reproduce the issue you have.


    Let me know

    Thanks,


    Max from the Sonaar.io Crew

  •   Ed Solovey replied privately
  •  314
    Alexandre replied

    Hello Ed, 

    I have improved the custom JS code we did to fix this issue. 
    Please take a look. The player will appears

    Thanks,


    Alexandre from the Sonaar.io Crew

  •   Ed Solovey replied privately
  • Ed Solovey replied

    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!

  •  314
    Alexandre replied

    Yes, this is the code I added. 
    It is no perfect but it works.
    What we want is to execute the setIronAudioplayers() function once the new content has been loaded by ajax.

    Thanks,


    Alexandre from the Sonaar.io Crew