• Jkp

    (@sb1212)


    When I try to insert the trading view widget on my post it works on my edit page but not on preview or public pages

    <!-- TradingView Widget BEGIN -->
    <div class="tradingview-widget-container">
    <div class="tradingview-widget-container__widget"></div>
    <div class="tradingview-widget-copyright"><a href="https://www.tradingview.com/" rel="noopener nofollow" target="_blank"><span class="blue-text">TSLA,UBSG and NOVN quotes by TradingView</span></a></div>
    <script type="text/javascript" src="https://s3.tradingview.com/external-embedding/embed-widget-symbol-overview.js" async>
    {
    "lineWidth": 2,
    "lineType": 0,
    "chartType": "area",
    "fontColor": "rgb(106, 109, 120)",
    "gridLineColor": "rgba(46, 46, 46, 0.06)",
    "volumeUpColor": "rgba(34, 171, 148, 0.5)",
    "volumeDownColor": "rgba(247, 82, 95, 0.5)",
    "backgroundColor": "#ffffff",
    "widgetFontColor": "#0F0F0F",
    "upColor": "#22ab94",
    "downColor": "#f7525f",
    "borderUpColor": "#22ab94",
    "borderDownColor": "#f7525f",
    "wickUpColor": "#22ab94",
    "wickDownColor": "#f7525f",
    "colorTheme": "light",
    "isTransparent": false,
    "locale": "en",
    "chartOnly": false,
    "scalePosition": "right",
    "scaleMode": "Normal",
    "fontFamily": "-apple-system, BlinkMacSystemFont, Trebuchet MS, Roboto, Ubuntu, sans-serif",
    "valuesTracking": "1",
    "changeMode": "price-and-percent",
    "symbols": [
    [
    "NASDAQ:TSLA|1D"
    ],
    [
    "SIX:UBSG|1D"
    ],
    [
    "SIX:NOVN|1D"
    ]
    ],
    "dateRanges": [
    "1d|1",
    "1m|30",
    "3m|60",
    "12m|1D",
    "60m|1W",
    "all|1M"
    ],
    "fontSize": "10",
    "headerFontSize": "medium",
    "autosize": true,
    "width": "100%",
    "height": "600px",
    "noTimeScale": false,
    "hideDateRanges": false,
    "hideMarketStatus": false,
    "hideSymbolLogo": false
    }
    </script>
    </div>
    <!-- TradingView Widget END -->

    The code on my published post get modify by wordpress to

    <div class="tradingview-widget-container">
    <div class="tradingview-widget-container__widget"></div>
    <div class="tradingview-widget-copyright"><a href="https://www.tradingview.com/" rel="noopener nofollow" target="_blank"><span class="blue-text">TSLA,UBSG and NOVN quotes by TradingView</span></a></div>

    </div>

    So the embedded chart can be view on the post !!
    The script given disappears ??

    how can I fix it ?

    The page I need help with: [log in to see the link]

Viewing 5 replies - 1 through 5 (of 5 total)
  • Moderator threadi

    (@threadi)

    How exactly do you insert the code into your editor? And which editor do you use? Feel free to show us a screenshot: https://wordpress.org/support/forum-user-guide/block-editor/#adding-screenshots

    Please also note that administrators in WordPress have more rights to insert HTML code. As an editor, you are more restricted in this regard.

    Thread Starter Jkp

    (@sb1212)

    I’m the only administrator of the site… I add the code in Custom Html block

    here is the screenshot: https://imgur.com/a/Jsoeiyr

    I just dropped your code into a Custom HTML block on a Page in a spanking-new WordPress 6.8.2 site, no plugin, and the default Twenty Twenty-Five theme. The result? Nothing got stripped out, and the widget appears fine on the published page.

    Here’s the link: https://soothedriving.s3-tastewp.com/sample-page/

    I’ve also included a screenshot below, just in case the demo site gets deleted before you see this.

    If you’re absolutely sure you have administrative rights on the site, then something something on the site must be causing this. What exactly? That will take some digging on your part to find out.

    Thread Starter Jkp

    (@sb1212)

    george : I know that there must be an issue in my WP settings but I don’t know what ! If anyone have the answer…

    Thread Starter Jkp

    (@sb1212)

    How to make script visible on post… Who is guilty ? PLugin or theme what do you think?

Viewing 5 replies - 1 through 5 (of 5 total)

You must be logged in to reply to this topic.