Site logo

[Resolved] Add the ‘download’ attribute to a button

Home Forums Support [Resolved] Add the ‘download’ attribute to a button

Home Forums Support Add the ‘download’ attribute to a button

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #1924709
    Dan

    when I try adding the download attribute the a button via HTML I get a notive that the block is invalid.
    The attribute is not added to the link.
    Can you help me out?

    Thanks
    Dan

    #1924759
    Leo
    Staff
    Customer Support

    Hi Dan,

    Are you referring to GB’s buttons block?

    If so does the same thing happens to the button block from WP?

    #1924830
    Dan

    Hi Leo,
    yes, this is with GB’s buttons block.
    This too happens with the WP button block.

    Any way around this?

    Dan

    #1924841
    Leo
    Staff
    Customer Support

    Unfortunately I’m not aware of a workaround.

    GB pro allows you to add custom attribute:
    https://docs.generateblocks.com/article/custom-attributes/

    However, we just discovered that there is a bug that needs to be fixed.

    I’d recommend checking with WordPress’ support team about adding a custom attribute to the core button block 🙂

    #1924860
    Dan

    ok, thanks

    #1924865
    Leo
    Staff
    Customer Support

    I think using a custom HTML block to create the button would be the easiest solution for now.

    #1928838
    Dan

    ok, I’ll give that a try till core wraps their head around this.

    Dan

    #1929143
    Leo
    Staff
    Customer Support

    No problem 🙂

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