How to add custom attributes to Memberstack link blocks without replacing the icon and text content? Answered

Post author
Manuela Rösch

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

  • Comment author
    Julian Galluzzo

    Replace data-ms-member="dashboard" with ms-code-field-link="dashboard" and it should work 🙂

    0
  • Comment author
    Manuela Rösch

    Oof thank you, I really thought I was being clever "fixing" the code tot the custom field name😂

    0
  • Comment author
    Julian Galluzzo

    No problem, it happens!! 🤣

    0

Please sign in to leave a comment.