• Hello,

    I have a mp4 video in a HTML figure tag (inserted as an ordinary Video block in the block editor) which is displaying correctly in the admin, but not on the front end. When I load the page, I can see the video for a very brief moment, but then it disappears.

    When I check the page source via ctrl+U, I can see the video in the figure tag:

    <!-- .entry-header -->
    <div class="entry-content">
    <figure class="wp-block-video">
    <video controls src="https://new.zenitha.cz/wp-content/uploads/2023/11/foceni_kalendare-1.mp4"></video></figure>
    </div>
    <!-- .entry-content -->

    However, when I inspect the page via inspect element, the whole div is missing:

    <!-- .entry-header -->
    <!-- .entry-content -->

    Something must be pulling the div out of the DOM. Either the CSS ::after which is located before the closing </header> tag, or something in the theme’s JavaScript files.

    How can I debug this?

    Thank you very much

    Petr

    • This topic was modified 1 year, 4 months ago by xbhy.

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

Viewing 1 replies (of 1 total)
  • Thread Starter xbhy

    (@xbhy)

    UPDATE: After adding an image gallery under the video, the video displays correctly. So I guess the problem occurs only when the video block is alone on the page. The issue is solved for me now, but I think it still may be worth investigating the cause.

Viewing 1 replies (of 1 total)
  • The topic ‘Figure in entry-content not displayed’ is closed to new replies.