Home › Forums › Support › Add the ‘download’ attribute to a button This topic has 7 replies, 2 voices, and was last updated 4 years, 6 months ago by Leo. Viewing 8 posts - 1 through 8 (of 8 total) Author Posts September 9, 2021 at 12:10 pm #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 September 9, 2021 at 1:03 pm #1924759 LeoStaff 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? September 9, 2021 at 2:39 pm #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 September 9, 2021 at 2:47 pm #1924841 LeoStaff 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 🙂 September 9, 2021 at 3:34 pm #1924860 Dan ok, thanks September 9, 2021 at 3:42 pm #1924865 LeoStaff Customer Support I think using a custom HTML block to create the button would be the easiest solution for now. September 13, 2021 at 7:35 am #1928838 Dan ok, I’ll give that a try till core wraps their head around this. Dan September 13, 2021 at 9:14 am #1929143 LeoStaff Customer Support No problem 🙂 Author Posts Viewing 8 posts - 1 through 8 (of 8 total) You must be logged in to reply to this topic. Log In Username: Password: Keep me signed in Log In