Hello first of all thank you all!
I just added a new page to my website: https://mundodelcomic.com/pages/magic-the-gathering-set-site it will list all expansions for MTG, and I added a search function that it seems to work on w3schools editor, but when I added it to shopify page the dynamic search bar did not work.
Hope you guys can help me out!
Thanks a lot!
Hey there! Thanks for sharing your new page. I love that you’re building a handy MTG expansions list for your community! It’s awesome to see the effort you’ve put in, but I get how frustrating it must be that the dynamic search bar isn’t working in Shopify after testing fine on W3Schools. Since Shopify’s liquid templates can sometimes mess with custom JavaScript, double-check that your search code (HTML, CSS, and JS) is fully embedded in the page—either by pasting it directly into the page’s HTML editor in Shopify (Content > Pages > Edit) or using a custom liquid section. If it’s still not firing, it might be a conflict with Shopify’s theme scripts—try wrapping your JS in a document.addEventListener(‘DOMContentLoaded’, function() { … }) to ensure it loads properly, or test it with a basic theme like Dawn to rule out interference. For a quick win, you could also lean into Shopify’s built-in search tools by tagging your MTG sets and linking them to a collection page instead
1 Like
Fixed it by changing to jQuery instead of Javascript!