Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author elsbree

    (@elsbree)

    Hi Tessa,

    Unfortunately, I don’t really have any experience working with WordPress themes. You might need to try using raw Javascript instead of the shortcode- could you try putting this snippet in your HTML?

    <div id="player"></div>
    <script>
        (function() {
            var script = document.createElement("script");
    
            script.type = "text/javascript";
            script.async = true;
            script.src = "//sd.toneden.io/production/toneden.loader.js"
    
            var entry = document.getElementsByTagName("script")[0];
            entry.parentNode.insertBefore(script, entry);
        }());
    
        ToneDenReady = window.ToneDenReady || [];
        ToneDenReady.push(function() {
            // Modify the dom and urls parameters to position
            // your player and select tracks/sets/artists to play.
            ToneDen.player.create({
                dom: "#player",
                urls: [
                    "https://soundcloud.com/giraffage"
                ]
            });
        });
    </script>
    Thread Starter tessasomnuk

    (@tessasomnuk)

    Hi elsbree,

    Thanks for your response!

    WordPress homepages aren’t actually pages, so I can’t enter in the code anywhere (unless there’s some round about way I don’t know about)…

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Player on homepage’ is closed to new replies.