Skip to main content

How to selectively hide paragraphs in Webflow CMS rich text fields using Memberstack without custom attributes?

Hi, thanks in advance for any response! ๐Ÿ˜€

I have a rich text field populated by a Webflow CMS collection. Currently, I can add the data attribute to the entire rich text field and choose to hide it entirely. However, what if I only want to hide the paragraphs (<p>) within this rich text field, while keeping elements like <H2>, <H3>, and <code> visible? Is there a method to do this using Memberstack, given that I can't add custom attributes to individual parts of this rich text field?

Thank you again :)

2 comments

  • Josh Lopez
    Josh Lopez

    Hello Miguel Gonzalez

    Thank you for posting! I dont think there would be a way to do this without custom javascript code using the DOM Package to see if a member is logged in or not and then get the rich text field element to search in it and show and hide things. If you need help with custom code you can reach out to one of our awesome experts!

    0
  • Miguel Gonzalez
    Miguel Gonzalez OP

    Hey Josh,

    Thank you for your response :)

    Yes, I'm using custom JavaScript to achieve this goal ๐Ÿ˜€

    0

Please sign in to leave a comment.

Sitemap