Archived topic
Urgent: Buttons Stopped Working ecom
8 replies · Started by Rylan Urban on April 9, 2018
The buttons in pages and sidebar have stopped linking to appropriate content. No html or css was changed.
Can you please let me know the issue? They have been working fine for years!
Where are they supposed to link to?
GP itself doesn't have any control over your content, including links. Perhaps you have some javascript on the page changes the links?
They are just supposed to link somewhere... the buttons suddenly stopped working is what I'm trying to say.
This no longer works:
<p style="text-align: center;"><button class="custom-button">View Our Selection</button></p>
<p style="text-align: center;"><button class="custom-button"><a href="https://haritaki-yogic-super-brain-food.myshopify.com/">View Our Selection</a></button></p>
The buttons are linking to the page in your code above for me: https://www.screencast.com/t/bvgcC6kwKq
Very strange, but thanks for your help.
We got an email from a visitor saying that the button doesn't work. They also don't work on my computer (firefox or internet explorer) but it does work on chrome.
Any suggestions for amending cross browser differences? It seems strange because it's just a simple css/html button.
Rylan
Instead of using <button>, I would just use a link:
<a class="button" href="#">My button</a>
Might be better across all browsers.
Awesome, thanks again,
Rylan
You're welcome :)