Liquid, JavaScript, themes, sales channels
Hi there, I am having an issue that others have seemed to have in the past. The text on the "Add to cart" button is missing; I am using the Publisher theme if that makes any difference.
It is not an issue with the text colours, nor the button label text that can be changed in the "Edit default theme content" section. The text is simply not there on the button.
I've seen other answers to this post recommending to add the text in a specific section of the "main-product.liquid" file, but I do not have the same snippet in my own main-product.liquid file as the one shown in the answer. So I'm not really sure where I can add the "Add to cart" text in the code.
Any help with this would be greatly appreciated! Thank you in advance 🙂
Hi @notgreatatcode, I could take a look at this for you. Send me a message and I can request access to your store to find the relevant file.
Best,
Rob from Exit Poll
Hi Rob, I think I might have found a quick fix solution! Testing it now and if it doesn't work I will message you. Thanks a bunch 🙂
OK great!
Since you haven't provided a url or theme name , you'll need to do it yourself and make sure whether the text is actually there and not just the same color as the buttons background color making it impossible to see. Either try selected the text on the button, or right clicking and select "inspect" to open the browsers devtools to inspect the buttons html to verify the text is being rendered.
main-product.liquid generally refers to a section, button code and text output for themes based on dawn or dawn-like are in the snippet buy-buttons.liquid
https://github.com/Shopify/dawn/blob/main/snippets/buy-buttons.liquid#L91
If you need this debugged and fixed then contact me by mail for services.
ALWAYS please provide context, examples: store url, theme name, post url(s) , or any further detail in ALL correspondence..
Contact info in signature.
Good Luck.
Save time & money ,Ask Questions The Smart Way
Confused? Busy? Get the solution you need paull.newton+shopifyforum@gmail.com
Problem Solved? ✔Accept and Like solutions to help future merchants
Answers powered by coffee Buy Paul a ☕ Coffee for more answers or donate to eff.org
Hi Paul, I specified in my post that I'm using the Publisher theme (in bold) and also specified that the text is indeed missing, not just a colour issue. If you happen to have any suggestions, please let me know 🙂
User | RANK |
---|---|
37 | |
27 | |
14 | |
13 | |
9 |
Make the shift from discounts to donations, and witness your business not only thrive fina...
By Holly Dec 4, 2023On our Shopify Expert Marketplace, you can find many trusted third party developers and fr...
By Arno Nov 27, 2023You've downloaded the Search & Discovery app from the Shopify App store, and as you're ...
By Skye Nov 8, 2023