• <!-- wp:paragraph -->
    <p><iframe class="frank-embed" src="https://frankspeech.com/embed/Mjg1MDc=" width="640" height="500" frameborder="0" allowfullscreen="allowfullscreen"></iframe></p>
    <!-- /wp:paragraph -->

    After pasting the above code (furnished by FrankSpeech.com website) in the code editor, the video works in the Block Editor mode. However, it is deleted in the “Preview” mode, and when Publishing the post or Updating the post. The following shows the code inserted at the end of the post.

    <!-- wp:paragraph -->
    <p></p>
    <!-- /wp:paragraph -->
    
    <!-- wp:paragraph -->
    <p><iframe class="frank-embed" src="https://frankspeech.com/embed/Mjg1MDc=" width="640" height="500" frameborder="0" allowfullscreen="allowfullscreen"></iframe></p>
    <!-- /wp:paragraph -->
    
    <!-- wp:paragraph -->
    <p></p>
    <!-- /wp:paragraph -->

    WordPress 5.8.2 running Startinger theme.

    • This topic was modified 3 years, 3 months ago by bcworkz. Reason: code format fixed

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

Viewing 7 replies - 1 through 7 (of 7 total)
  • Moderator bcworkz

    (@bcworkz)

    Try using an “Embed” block instead of a normal paragraph block.

    Thread Starter DonHaggard

    (@donhaggard)

    The /Embed block asks for a URL. Weather I supply the iframe or the URL, it is not accepted. I think I had previously tried that.

    Moderator bcworkz

    (@bcworkz)

    The source site doesn’t properly respond to oEmbed requests. Try pasting the iframe into a customHTML block. It worked when I tested.

    Thread Starter DonHaggard

    (@donhaggard)

    Thanks. I tried that, but it didn’t fix the problem. In your test did you use the Embed Code from a FrankSpeech.com video?

    Thread Starter DonHaggard

    (@donhaggard)

    I am getting anxious about this. With all of the censorship of truth and FrankSpeech being the best source of truth, I am anxious to spread that truth.

    If anyone has a suggestion of how to better pursue this issue, please let me know.

    Thank you,
    Don

    Thread Starter DonHaggard

    (@donhaggard)

    I am beginning to think the problem has to do with using the Block Editor. Block Editor appears to be my default Editor. If I simply create a new post, enter a title and save it. Then, open it in the Classic Editor, go to text mode, paste the Embed iframe the video appears. Even while still in text mode when I do “Save Draft” the video is deleted.

    Someone else on the same site who has the Classic Editor as default can create a post with just a title, paste the Embed Code in text mode and everything works fine.

    QUESTION: When the Block Editor is your default editor, is there a way to create a new post in the Classic Editor?

    Thread Starter DonHaggard

    (@donhaggard)

    I changed my default editor back to Classic in my Profile. Then, when I Publish the post, the video is deleted. VERY FRUSTRATING!!!

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Working code removed when Publishing’ is closed to new replies.