Site logo

[Resolved] Custom HTML Element/Tag Label

Home Forums Support [Resolved] Custom HTML Element/Tag Label

Home Forums Support Custom HTML Element/Tag Label

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #1955587
    igniteperth

    I am looking to change the element tag on a group and or container. I was hoping there might be a way to allow for additional tag types.

    Specifically I would like to be able to make my group a

    <label class”someclass”>
    additional gb-blocks
    </label>

    any help or guidance appreciated.

    #1955685
    David
    Staff
    Customer Support

    Hi there,

    thats not possible without editing the Blocks HTML, which will lead to potential issues ie. the blocks won’t render in the editor and the block editor will probably throw an error or warning.

    I am not sure what your intention is regarding the <label> element – but its standard application is a caption for a UI eg, Forms. I would recommend reading up on the label semantics before adding ‘unusual’ content within one:

    https://developer.mozilla.org/en-US/docs/Web/HTML/Element/label

    #1959385
    igniteperth

    Thanks for the reply, David.

    I wanted to make some drop down accordians using css by grouping blocks. As a workaround I’ve just used html blocks instead.

    #1959618
    David
    Staff
    Customer Support

    Glad to be of help

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.