2015-06-20 42 views
1

我需要嵌入在自己下面的代碼託管WordPress安裝 -嵌入在WordPress的iframe中不起作用

<iframe id="slydy" 
    style = "border: none; max-width: 100%; min-width: 100px;" 
    src = "http://slydy.co/users/TCC/01" 
    width = "648" 
    height = "435" 
    frameborder = "0" 
    marginwidth = "0" 
    marginheight = "0" 
    scrolling = "no" 
    allowfullscreen = "allowfullscreen"> 
</iframe> 

,但它只是不顯示。至少在其他兩個WordPress博客上安裝了它,它工作得很好。

我需要什麼樣的設置來調整?

回答

1

可能這些事情之一:

  1. 如果您的網站HTTPS那麼它阻止,因爲你的iframe是HTTP。
  2. 確保您在文本(不可視)後期編輯屏幕
  3. WP緩存在編輯模式?
+0

或者同源策略 - https://developer.mozilla.org/en-US/docs/Web/Security/Same-origin_policy –

+0

好吧,在這種情況下它不是同一起源策略,因爲我剛剛嘗試過它的工作原理。 –

1

WordPress的編輯器塊/移除內部框架。嘗試使用一些支持iframe的插件,並使用Shortcode來製作iframe。