-
AuthorPosts
-
July 17, 2015 at 5:39 am #333012
Hi, 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 #333033Hi there,
Thanks for writing in! Please paste the
iframe
code 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 #333052Hi, 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 #333070Hi,
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 #333125Hi,
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 #333313Glad it’s working now.
Cheers!
-
AuthorPosts