You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
In some cases is useful to add an ID to an element. This is impossible on gutenberg.
Some blocks doesn't have the possibility to edit html, others give the "unexpected or invalid content" if I try to add an id.
To reproduce
Steps to reproduce the behavior:
Create a paragraph block
Edit as html
Add id="cta"
See error unexpected or invalid content
Expected behavior
html id should be an option if I want to use an advanced editor.
Adding an id option in block panel advanced settings should be considered
Screenshots
If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):
OS: Windows
Browser chrome
Version [e.g. 22]
Smartphone (please complete the following information):
Device: [e.g. iPhone6]
OS: [e.g. iOS8.1]
Browser [e.g. stock browser, safari]
Version 76.0.3809.132
The text was updated successfully, but these errors were encountered:
html id should be an option if I want to use an advanced editor.
Do you mind providing some more information on why you need an id for this instead of a class name?
Both the Group Block (a new block available in the plugin and due to be released in WP 5.3) and the Heading Block support adding ids via the 'Anchor' setting in the Advanced section. The Group block can be used to wrap any other block(s), so that might solve your issue.
I would mention that this feature is really for adding links to sections of posts.
Describe the bug
In some cases is useful to add an ID to an element. This is impossible on gutenberg.
Some blocks doesn't have the possibility to edit html, others give the "unexpected or invalid content" if I try to add an id.
To reproduce
Steps to reproduce the behavior:
Expected behavior
html id should be an option if I want to use an advanced editor.
Adding an id option in block panel advanced settings should be considered
Screenshots
If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):
Smartphone (please complete the following information):
The text was updated successfully, but these errors were encountered: