• Resolved toimisto

    (@toimisto)


    Is there a way to add a new body class (or modify has-easy-notification-bar) after user dismisses the bar?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author wpexplorer

    (@wpexplorer)

    Hey,

    This is AJ the developer, sorry for the delated reply. I didn’t get any email from WordPress about this new comment but gone one for the newer one and noticed this one hadn’t been replied to ??

    Anyway, there isn’t a built-in way for this since there aren’t any custom JS events being added, you would have to dequeue the js file, tweak the code and re-enqueue your custom script.

    Currently the plugin already adds a “has-easy-notification-bar” classname to the body tag, but this should be removed when dismissed. So then you can target the body using body:not(.has-easy-notification-bar){} – I will fix the issue and push out the fix. Thanks for bringing this to my attention!

    – AJ

    Plugin Author wpexplorer

    (@wpexplorer)

    Just pushed out the update. This is the expected result: https://a.cl.ly/yAuyElmj

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Add body class after closed’ is closed to new replies.