Text missing from "Add to cart" button

notgreatatcode
New Member
4 0 0

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 🙂

Replies 5 (5)
Rob_Mardall
Shopify Partner
23 2 3

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

Find out why users are leaving today for FREE with Exit Intent Survey


I have years of experience building apps and helping merchants solve problems on their stores so feel free to message me if you need any help!
notgreatatcode
New Member
4 0 0

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 🙂

Rob_Mardall
Shopify Partner
23 2 3

OK great!

Find out why users are leaving today for FREE with Exit Intent Survey


I have years of experience building apps and helping merchants solve problems on their stores so feel free to message me if you need any help!
PaulNewton
Shopify Partner
5931 537 1241

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


notgreatatcode
New Member
4 0 0

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 🙂