- This topic has 13 replies, 3 voices, and was last updated 3 years, 6 months ago by Elvin.
-
AuthorPosts
-
October 6, 2020 at 8:12 pm #1475625Preetam
Hi
try to add <H2> to tag on Subheading by edit HTML. see this message:
“The editor has encountered an unexpected error.”
and 3 buttons:
Attempt Recovery
Copy Post Text
Copy ErrorI installed Health Check & Troubleshooting plugin.tried again – still the same problem: The editor has encountered an unexpected error.
Any help will be appreciated.
October 7, 2020 at 2:23 am #1476041DavidStaffCustomer SupportHi there,
how are you adding the Subheading – Is this a plugin adding that feature ?
October 7, 2020 at 2:36 am #1476058PreetamHi David. I am adding a H2 Tags on subheading through edit as HTML option and no plugins. i tried to disable all plugins and still the problem persist.
October 7, 2020 at 4:31 am #1476209DavidStaffCustomer SupportAre you using the Block Editor ?
October 7, 2020 at 9:04 pm #1477723PreetamYes David.I am using block editor.
October 8, 2020 at 1:21 am #1477973DavidStaffCustomer SupportAny reason why you’re editing the HTML to add the H2 ?
October 8, 2020 at 12:05 pm #1479078Preetamwhen i am adding the content onto the editor i cant see the the option to add HTMl tags naturally so i use the option Edit as HTML. is there any way i can share the screenshot or screen recording with you the prolem?
October 8, 2020 at 1:57 pm #1479217ElvinStaffCustomer SupportHi,
You can try sharing your screenshot to us by uploading it here( https://imgbb.com/ ) and giving us the link.
There’s a specific block that allows you to do that. You should use Custom HTML block rather than editing a block through edit HTML or code editor.
You should be able to find it there. It’s a default block readily available in Gutenberg Editor.
Read more here: https://wordpress.com/support/wordpress-editor/blocks/custom-html-block/
Alternatively, if you just want to add an h2, you can just use the heading block.
October 8, 2020 at 5:38 pm #1479412PreetamHi Elvin. Thanks for your reply. here is the link with issue. https://streamable.com/ia9osu
October 8, 2020 at 5:52 pm #1479421ElvinStaffCustomer SupportThank you.
As David asked, Can you tell us why you have to place an H2 inside a paragraph?
Perhaps we can offer a better solution to what you’re trying to do.
By the way, your HTML syntax is wrong. the correct syntax is
<h2>This is The Issue</h2>
not</h2>This is The Issue</h2>
. Mind the/
syntax. It’s only used for closing the tag.October 8, 2020 at 6:44 pm #1479453PreetamHi Elvin. Yes that was a mistake. Thanks for pointing out. I am not exactly using the H2 inside the paragraph but to highlight the sub headings in different HTML tags like H2 to H4.
October 8, 2020 at 6:48 pm #1479456ElvinStaffCustomer SupportOh if that’s the case, you’ll be better served if you use the Heading Blocks instead.
This block will allow you to choose the subheading you want.
Read more here – https://wordpress.com/support/wordpress-editor/blocks/heading-block/
It should be readily available as it is one of Gutenberg editor default blocks.
October 8, 2020 at 6:53 pm #1479460PreetamOkay Thanks Elvin. Any idea why this issue is happening?
October 8, 2020 at 7:04 pm #1479472ElvinStaffCustomer SupportIt happens on purpose. It works that way by design.
This will be a good read if you want to dig deeper. https://github.com/WordPress/gutenberg/issues/7604
This in-depth explanation comes directly from one of Gutenberg contributors/developers.
-
AuthorPosts
- You must be logged in to reply to this topic.