2016-11-16 49 views
0

我使用Flatsome主題中標題爲'UX Slider'的Wordpress滑塊。我有3個圖像幻燈片,其中1個我想鏈接到點擊時的Wistia視頻彈出窗口。用視頻彈出包裝幻燈片

這是Wistia爲彈出函數的代碼:我不知道如何將它與滑塊集成,雖然

<script src="//fast.wistia.com/embed/medias/####.jsonp" async></script>  
<script src="//fast.wistia.com/assets/external/E-v1.js" async> </script> 
<span class="wistia_embed wistia_async_#### popover=true popoverContent=link" style="display:inline"> 
<a href="#">Click Me</a></span> 

。這是滑塊結構:

[ux_slider] 
[ux_banner height="550px" bg="http://myurl.com/myimage.jpg" link="myurl.com"] 

<p>Text here</p> 

[/ux_banner] 
[/ux_slider] 

這是我試過,但它不工作(無視頻顯示,在所有):

[ux_slider] 
[ux_banner height="550px" bg="http://www.myurl.com/myimage.jpg" link="" 
<script src="//fast.wistia.com/embed/medias/####.jsonp" async></script> 
<script src="//fast.wistia.com/assets/external/E-v1.js" async></script> 
<span class="wistia_embed wistia_async_#### popover=true popoverAnimateThumbnail=true popoverContent=link" style="display:inline"></span> ] 
[/ux_banner] 
[/ux_slider] 

回答

0

幾個不同的東西可能是問題...

  1. 該插件可能會剝離<script>標籤,這會阻止您的視頻正確加載。

  2. 由於輸入錯誤,您插入的代碼可能無法正常工作。


首先,我會嘗試使用Wistia對酥料餅的演示代碼的help page

<script src="//fast.wistia.com/embed/medias/pukozq6xf0.jsonp" async></script> 
<script src="//fast.wistia.com/assets/external/E-v1.js" async></script> 
<span class="wistia_embed wistia_async_pukozq6xf0 popover=true popoverAnimateThumbnail=true" style="display:inline-block;height:169px;width:300px">&nbsp;</span> 

如果代碼作品和視頻節目,則可能是有問題的你最初嘗試使用的代碼。

如果它仍然不起作用,那麼它可能不支持您正在使用的滑塊插件。

+0

謝謝,這也沒有工作,所以它看起來像插件只是