Embedding widgets from tradingview.com
-
Hello,
I am trying to embed the code below from tradingview.com into an HTML block on a page. When I am building the page and select ‘Preview’ on the HTML block after pasting the code in, a perfect image of what I want visible appears. However, Once I click to preview the page itself or attempt to see the page after it has been published, it defaults to only showing the HTML code. Any advice?
Thanks for your time!
-
Hi there,
The code you posted here is only some CSS. That’s the code that tells the browser how something should look, but the accompanying HTML code that tells the browser what that “something” actually is, is missing.
That tells me that this widget requires
iframeor JavaScript code to work, but we don’t allow either of those types of code on WordPress.com, so it’s being stripped out automatically as soon as you save or publish your post, just like it got stripped out here in the forums.You can read more about our code restrictions here:
So I’m afraid you won’t be able to embed that code on a WordPress.com site, unless you want to upgrade to our Business Plan which doesn’t have these code restrictions.
- The topic ‘Embedding widgets from tradingview.com’ is closed to new replies.