Forum
Embedding Soundcloud/Mixcloud players on blog
Hi,
I'm having a problem with embedding either Soundcloud or Mixcloud players into my blog page.
I first started getting 403 Forbidden errors when I tried to save blog post and was able to get my hosting provider to relax mod_security for my entire domain in order to allow me to post to pages. The embedded players showed on the first post.
Now however, when I add a new post, the player does not show on webpage, yet I am able to view the player widget within Perch. I am using Redactor editor and pasting in <iframe> embed code from either Soundcloud or Mixcloud. I have tried to embed a Youtube video as well, just to test but no luck.
<perch:if exists="embed-player">
<div class="player-container">
<perch:blog id="Soundcloud2" type="textarea" order="7" editor="redactor" html="true" label="Embed Soundcloud or Mixcloud" size="s" />
</div>
</perch:if>
Thanks, Orla
What output do you get on your page?
On the page where player works I have: (https://airpi.ie/blog/post.php?s=alan-meaney)
On page where it's not working I have: (https://airpi.ie/blog/post.php?s=liam-geraghty)
The div containing the players does not show at all.
You have
<perch:if exists="embed-player">
, but in the code you show there isn't a perch field with that ID. Perhaps you mean<perch:if exists="Soundcloud2">
?Hi Simon,
I did indeed mean ~~~<perch:if exists="Soundcloud2">~~~ ! ;-)
Thanks for that. All players showing as should.
Great :)