Help On Klaviyo's Back In Stock Button Position - Hoxton Theme

I’m using Klaviyo’s back-in-stock feature, and I’ve added the code provided by Klaviyo to the theme.liquid file as instructed. The “Notify Me” button is currently appearing below the price, but I would like it to be placed either above or below the “Sold Out” button.

I have tried various CSS methods and also placed the code in the main.product.liquid file. While some of these methods work, they sometimes display the button even on products that are in stock. Other times, the button appears correctly above the “Sold Out” button for some products but remains in the original position for others.

Below is the code I used. Could you please provide a solution that ensures the “Notify Me” button is consistently placed either above or below the “Sold Out” button for all products?

I have also attached the screen shot of the current preview as it’s a draft theme.

Thank you.

@ikhlaspirzada6

Please share your “main.product.liquid” file code. I will check and get back.

Thanks!