embedded video showing in preview but not on live site
-
I have used the following code and inserted using the ‘custom HTML’ option:
<div style=”position:relative;overflow:hidden;padding-bottom:56.25%”>http://a%20href=</div>
this works in preview mode but not on live site.
have cleared cache; jetpack is up-to-date.
Have changed the width and height from 100% to 640 x 380 specific digits and it makes no difference.
the saved changes after the code is embedded indicate a broad background space; I think this indicates something is changing on the live site but it is not showing the video.
many thanks in advance.
The blog I need help with is: (visible only to logged in users)
-
Hi, can you share some screenshots? I think I can help with this.
For the custom HTML option you are trying to implement, a business plan is required for security reasons. It won’t work unless you have a plugin-enabled plan on your website.

-
If you can share a bit more about what you want to do/how you want the video to look, we may be able to suggest an alternative to custom HTML.
-
It sounds like the issue might be related to how your website handles iframes or embedded content. From my experience, platforms like WordPress often require specific configurations to display embedded videos correctly. A few things you can try:
Ensure that your theme or plugins aren’t blocking the embed. Sometimes themes with strict security settings can interfere.
If you’re using Jetpack, ensure the ‘Shortcode Embeds’ feature is enabled—it helps with embedding videos.
For a more reliable alternative, consider using iframe-based embed codes directly from the video hosting service (like YouTube). Make sure the code is pasted into a block that supports raw HTML, not just styled HTML. -
@ironfoxd8d3235c5c please stick to the documentation and the way wordpress.com works! You can’t use iframe or embed on the wordpress.com platform unless you upgrade to the Business Plan.
To put a video of the most popular platforms on a wordpress.com site, you find all info and instructions at https://wordpress.com/support/videos/
-
@christiansciencecanberra if you are still having trouble with this, please let us know and exactly what you are trying to do to better understand if we can suggest an alternative to custom HTML.
- The topic ‘embedded video showing in preview but not on live site’ is closed to new replies.