Home Forums Newsletter Plugin Support Body Classes According TNA Page State

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #296364
    fec29
    Participant

    Hi!

    I’m looking for a way to know (through CSS) if the newsletter confirmation/subscription page is displaying the form or the confirmation message. I thought there would be a class in the body tag of the page like “tnp-confirm” but I didn’t find anything like so. Did I miss something? Is there another way to achieve this?

    If not, it would be really great to be able to style/hide/display different things on the page according its state/status. Classes inside the body tag seems to be an easy and effective way. Such classes could be “tna-confirm”, “tna-form”, “tna-error”, “tna-unsucribe”, etc.

    Thank you!

    Have a great day,

    #296512
    Stefano
    Keymaster

    Hi, I’ve created a task for devs, thank you!
    Possibly you can add a div with a class around the messages editing them on subscription, profile, and cancellation configuration pages.

    #346889
    Genius Store SL
    Participant

    perhaps you can hook visibility to the “newsletter” cookie. However this limit visibility to the browser/device where the visitor subscribed.

    I posted a JS example about how to change visibility of elements based on that cookie on:
    https://www.thenewsletterplugin.com/forums/topic/newsletter-form-submit-button-hide-when-user-is-already-member#post-346888

    #347161
    Michael
    Keymaster

    Hello,

    thanks for your feedback.

    Michael

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