I have a custom button which is calling a playlist ID on click, but when this button is clicked it is reloading the page and not loading the playlist.
I have added the player shortcode to the template thus actually loading the player but the button does not work. What is even more strange is that I am using this exact same method throughout the site and it works perfectly everywhere else.
Hello sir.
I am having a small issue.
I have a custom button which is calling a playlist ID on click, but when this button is clicked it is reloading the page and not loading the playlist.
I have added the player shortcode to the template thus actually loading the player but the button does not work. What is even more strange is that I am using this exact same method throughout the site and it works perfectly everywhere else.
Can you help at all?
Many thanks
Dan
Hi,
which button element are you refering to? This one? https://d.pr/i/QUCmJV
If so, check the javascript call when you hover the button, it does not seem right.
Thanks,
Max from the Sonaar.io Crew
Make sure to remove any html link you have on that button
Thanks,
Max from the Sonaar.io Crew
Hi thanks for your reply.
Yes indeed the link does not seem right.
This is the code that im using:
<div style="text-align:center">
<a href="javascript:IRON.sonaar.player.setPlayer({id:3599})" class="button-player"><i class="fa fa-play-circle fa-lg"></i> Listen To Demo</a>
</div>
I am using this exact same code on pages throughout the site and it works fine.
ok I think ive sorted this now. I was using this code inside of custom fields and post excerpt and for some reason it did not like it.
When I use the code inside of the content block it seems to work fine.
Thanks for your help.
Dan