-
AuthorPosts
-
July 17, 2015 at 5:39 am #333012
CamomileParticipantHi, I’m trying to embed a slideshare on my site, I’ve tried adding the iframe code into a text block, this displays the slideshare fine but it doesn’t function. I’ve also tried using the embed short code but this doesn’t work at all. Any suggestions how to achieve this? (I’m working through cornerstone)
Examples of the code I’m trying to embed:
iframe
<iframe src="//www.slideshare.net/slideshow/embed_code/key/whZ5FANnFtREkJ" width="425" height="355" frameborder="0" marginwidth="0" marginheight="0" scrolling="no" style="border:1px solid #CCC; border-width:1px; margin-bottom:5px; max-width: 100%;" allowfullscreen> </iframe>WP shortcode
[slideshare id=50428425&doc=flippedclassrooms-150712022812-lva1-app6892]Thanks
July 17, 2015 at 6:03 am #333033
Nabeel AModeratorHi there,
Thanks for writing in! Please paste the
iframecode in Raw Content Element:<iframe src="//www.slideshare.net/slideshow/embed_code/key/whZ5FANnFtREkJ" width="425" height="355" frameborder="0" marginwidth="0" marginheight="0" scrolling="no" style="border:1px solid #CCC; border-width:1px; margin-bottom:5px; max-width: 100%;" allowfullscreen> </iframe>I tested it in local setup and it works fine.
Let us know how this goes!
July 17, 2015 at 6:30 am #333052
CamomileParticipantHi, thanks for the reply.
When I try this the slideshare displays but doesn’t function. Chrome console reports a few js errors along with a “Cross-Origin Resource Sharing policy” error.
July 17, 2015 at 6:46 am #333070
Paul RModeratorHi,
Can you provide us your site url so we could take a closer look.
At the mean time, you can try adding this code in your .htaccess file located at the root directory of your site.
<IfModule mod_headers.c> Header set Access-Control-Allow-Origin "*" </IfModule>Thanks
July 17, 2015 at 8:19 am #333125
CamomileParticipantHi,
I had 3rd party cookie blocking enabled, oops. All seems to be working now, thanks for your time.July 17, 2015 at 2:19 pm #333313
Nabeel AModeratorGlad it’s working now.
Cheers!
-
AuthorPosts
- <script> jQuery(function($){ $("#no-reply-333012 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>
