Answered

Is it possible to detect when a Banner is visible with Javascript?

  • 1 February 2021
  • 3 replies
  • 139 views

We're currently using the Banners feature to display product announcements on our homepage. We'd love to be able to use the Inline / Top banner design, but the fixed CSS positioning overlaps our main site navigation, which uses sticky positioning. We instead had to result to using the bottom banner design.

 

Is it possible, using Javascript, to detect when a Banner is being displayed, so we can tweak our navigation style to accommodate the top banner?

 

Not sure if I posted this in the correct category, I didn't see an option for Banners.

icon

Best answer by Eric Fitz 4 February 2021, 12:23

View original

3 replies

Userlevel 1

Hey @chris g​, we don't currently expose in Javascript if a banner is live.

Thanks @eric f11​ , is it possible to submit a feature request for this?

Userlevel 1

Of course! We gather product feedback in our @Product Wishlist​ group, which I use as a basis for regular reports to our product team. Don't worry, you won't need to post the feedback separately - it'll show up in the group now because I've tagged the group in my reply!

Reply