Adding Custom HTML in the Gutenberg Editor

  • Unknown's avatar

    I keep trying to add this code to my wordpress site:
    `
    <div class=’senja-frame-embed’ data-id=’d0802b67-5d08-40b0-8296-3391c6f08e75′></div>
    https://widget.senja.io/embed/frame.js
    `

    But the gutenberg editor converts the script to a tag and removes the data-id attribute from the div. How can I workaround this?

    WP.com: Yes
    Jetpack: No
    Correct account: Yes

    The blog I need help with is: (visible only to logged in users)

  • Unknown's avatar

    You can’t put that code on a WordPress.com site as javascript isn’t allowed.

  • Unknown's avatar

    Hi there!

    I see that you have upgraded to the WordPress.com Business plan and activated the hosting features, which would allow you to use custom code like JavaScript. Can you tell us which page you are trying to add the code to?

    Also, your monthly Business plan gives you access to private support via email. I encourage reaching out to us for email support using this link. You can share the page you’re working on so that we can take a look and help you with this further.

    Thanks!

  • The topic ‘Adding Custom HTML in the Gutenberg Editor’ is closed to new replies.