Adding an “id” attribute to a list item in the List block
-
Hi there,
It seems impossible to ad an “id” attribute to a list item in the “List” block. I was assuming there would be a “HTML ANCHOR” field in the block editing column for a “list Item” but there isn’t.
Adding the id attribute manually by editing the block’s html directly like this:
<li id="some-id">List item content</li>
… results in “This block contains unexpected or invalid content.” With the button “Attempt Block Recovery”. When clicking this button the “id” attribute will be stripped out.
Is there any other way to add an “id” attribute to a list item in the List block?
I know I can create a custom list in the “Custom HTML” block but I think it is a bit strange this is not possible in the “List” block’s “List Item”.
- The topic ‘Adding an “id” attribute to a list item in the List block’ is closed to new replies.