How to add custom attributes to Memberstack link blocks without replacing the icon and text content? Answered
Hey everyone, I just tried adding a custom attribute to a link block. The custom attribute is a link and I added the code as explained in the video #17 - The link works but the custom attribute also replaces everything inside the link block. I I have an icon and text field that are being replaced with the entire URL as saved on Memberstack. How can I keep the icon and text? Anyone can help a newbie out? 😅
Comments
3 comments
Replace data-ms-member="dashboard" with ms-code-field-link="dashboard" and it should work 🙂
Oof thank you, I really thought I was being clever "fixing" the code tot the custom field name😂
No problem, it happens!! 🤣
Please sign in to leave a comment.