Eunice here from Shopify. Thanks for posting and welcome to the Community!
From your message, it sounds like you may have added some code to your theme that's not achieved the desired outcome, is that right? To fix this, I recommend deleting the code you added or rolling back your theme. If you're not sure how to roll back your theme check out this handy guide.
Once you've deleted the code or roll-backed your theme I recommend clearing your browser's cache and cookies before viewing your storefront. This is because our browsers have the ability to hold onto old information, and by clearing that information, we can ensure any new changes made in the Shopify admin will be reflected on the storefront.
Going forward, you may find this similar Community post helpful. Alternatively, you are able to hire a Shopify Expert who can create custom code for you.
Hope this helps. Don't hesitate to sing out here if you have any questions.