Streaming live at 10am (PST)

Code to count CMS items breaks navbar dropdown

Hi there,
I’ve having a weird problem: My site’s navbar works fine in general, there’s a dropdown that is opened on hover, like so:


However, I want big numbers for the number of items I have in each category in a Collection List, and when I add a simple script to count these like this…

…the navbar simply won’t open… Any ideas?

https://whitemonday.webflow.io/untitled

Thank you!

https://preview.webflow.com/preview/whitemonday?utm_medium=preview_link&utm_source=designer&utm_content=whitemonday&preview=96dfcbef4a89c121c9fb339aef8b33f2&pageId=5dadb4d40ae60a0ee6d3b3f1&mode=preview

Hi

In the read only link the dropdown menu actually open, did you mean that it won’t open in the published link?
Uf so, try to republish

Thank you, @shokoaviv. But in the editor it all works, because the custom code added to the page is not running.

Cheers
Simon