Navigation
This is archived content. Visit our new forum.
  • Author
    Posts
  • #333012

    Camomile
    Participant

    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

    #333033

    Nabeel A
    Moderator

    Hi 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!

    #333052

    Camomile
    Participant

    Hi, 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.

    #333070

    Paul R
    Moderator

    Hi,

    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

    #333125

    Camomile
    Participant

    Hi,
    I had 3rd party cookie blocking enabled, oops. All seems to be working now, thanks for your time.

    #333313

    Nabeel A
    Moderator

    Glad it’s working now.

    Cheers!