Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trial
Anita Amini
6,389 Pointsiframe soundcloud embedding won't work
I am entering the following code, copied from the embed section of soundcloud into the html body section. But it wouldn't show up on the website.
<iframe width="100%" height="300" scrolling="no" frameborder="no" src="https://w.soundcloud.com/player/?url=https%3A//api.soundcloud.com/tracks/81241452&auto_play=false&hide_related=false&show_comments=true&show_user=true&show_reposts=false&visual=true"></iframe>
Thanks.
4 Answers
Anita Amini
6,389 Pointsoh sorry, here's the code:
<iframe width="100%" height="300" scrolling="no" frameborder="no" src="https://w.soundcloud.com/player/?url=https%3A//api.soundcloud.com/tracks/92941169&auto_play=false&hide_related=false&show_comments=true&show_user=true&show_reposts=false&visual=true"></iframe>
I realised that it works in chrome but not in Firefox. thanks
Marcus Parsons
15,719 PointsAre you using the latest version of Firefox? I plugged the iframe code into a test.html file I have laying around, loaded it into Firefox, and I'm now playing "Neats - Cynical" which has a "neat" electronic feel. :)
Anita Amini
6,389 PointsI'm actually using the firefox developer browser, which I believe is the latest. will try it in the normal firefox. good to know it works. thank you :)
Marcus Parsons
15,719 PointsIf it still doesn't work for you, copy and paste your full code here. And by the way, I ran into this problem when posting code at first myself, but there has to be a line in between text and the opening block of code. When you post the code it should look like this:
<iframe width="100%" height="300" scrolling="no" frameborder="no" src="https://w.soundcloud.com/player/?url=https%3A//api.soundcloud.com/tracks/92941169&auto_play=false&hide_related=false&show_comments=true&show_user=true&show_reposts=false&visual=true"></iframe>
Anita Amini
6,389 PointsYeah I wasn't sure why it did that! great, thanks for your help :)
Marcus Parsons
15,719 PointsMy pleasure! If you ever need anything, you can tag me on here with the @ symbol or shoot me an email at: marcus.parsons@gmail.com. :)
Anita Amini
6,389 Pointsthank you!
Marcus Parsons
15,719 PointsMarcus Parsons
15,719 PointsHey Anita A,
I think your code has disappeared haha Can you try reposting the code but this time wrap the code as seen in the Markdown Cheatsheet? Treehouse only allows tags within code blocks on the forums.