嵌入脚本iframe在wordpress中不显示,除非登录用户

时间:2019-02-14 17:39:16

标签: javascript wordpress iframe

我正在写下面的代码。但是图表小部件仅向我显示(管理员)而不向访问者显示。

<!-- TradingView Widget BEGIN -->
<div class="tradingview-widget-container">
  <div id="tradingview_c80ea"></div>
  <div class="tradingview-widget-copyright"><a href="https://in.tradingview.com/symbols/NASDAQ-AAPL/" rel="noopener" target="_blank"><span class="blue-text">AAPL chart</span></a> by TradingView</div>
  <script type="text/javascript" src="https://s3.tradingview.com/tv.js"></script>
  <script type="text/javascript">
  new TradingView.widget(
  {
  "width": 980,
  "height": 610,
  "symbol": "NASDAQ:AAPL",
  "interval": "D",
  "timezone": "Etc/UTC",
  "theme": "Light",
  "style": "1",
  "locale": "in",
  "toolbar_bg": "#f1f3f6",
  "enable_publishing": false,
  "allow_symbol_change": true,
  "container_id": "tradingview_c80ea"
}
  );
  </script>
</div>
<!-- TradingView Widget END -->

我该如何解决这个问题?

0 个答案:

没有答案