Metafields not showing (Empire theme)

Hello,

We have our metafields set to display when clicked but they suddenly stopped working. How do we fix this within the Empire theme?

For example the “Ingredient” and “Diretions” tabs are not expanding on our Shea Butter page:

https://www.theoilbar.com/products/100-shea-butter-1?variant=32122637713475

Hi @theoilbar

I think tabs are not expanding because of a JavaScript error. Not sure where that code is exactly but you should find it. Maybe in theme.liquid.

But here is a problematic part of the code:


You see that script tags are added inside of the existing open script tag so that is causing the error.

It should be like this


I just moved the last closing script tag to the right place. Try it out.