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

    modern1
    Participant

    I’d like to embed a Wistia.com video on my homepage in the “Video Overview” section. Clicking on the “Video Overview” button should start playing my Wistia video. Is that possible?

    #356488

    modern1
    Participant
    This reply has been marked as private.
    #356596

    Lely
    Moderator
    This reply has been marked as private.
    #357448

    modern1
    Participant

    Just to follow up, the above suggestion worked except I had to change my Wistia Embed Type from iFrame to api.

    #357453

    modern1
    Participant
    This reply has been marked as private.
    #357627

    Lely
    Moderator

    Hello There,

    I have set the post as private so the public can’t see it.

    If you switch to API you can paste the Javascript code in Appearance > Customize > Custom > Javascript. Please note that <script> tag is not needed. In case you need to add javascript libraries, you can add the following in you child theme functions.php file:

    add_action('wp_footer', 'add_custom_code', 9999 );
    
    function add_custom_code() {
    echo 'custom-code-goes-here-like-this<script charset="ISO-8859-1" src="//fast.wistia.com/assets/external/E-v1.js"></script><script> wistiaEmbed = Wistia.embed("g5pnf59ala"); </script>';
    }
    

    Hope this helps.