I’m a google top quality merchant and am trying to install the badge onto my site. The instructions are pretty simple (installing a code into the head section). I tried doing so in theme.liquid but it did not work (the badge did not show). Why didn’t this work and where am I supposed to insert the code then? (the only section of my theme that is and has a section is theme liquid.
Here is a link to the google instructions for installing the badge:
How does it look the badge on your website? Could you please share a link or a screenshot? A client is asking to see an example, and I couldn’t find it yet. Much appreciated!
I tried installing this several times. Your method works, but stretches my site margins and content out like crazy. Can advise on how to fit within site margins??
Update: It works! I reached out to Shopify support, got a reply eventually that they tried and were sorry that it didn’t work but when I went on my site it was working perfectly (desktop and mobile). I checked and (as far as I can tell) they did exactly what I did - they inserted the google-provided code in my theme.liquid just above the I am not aware that they did anything else.
This leads me to believe that, perhaps, there is a propagation period before the badge becomes visible on the site. Install the code then check next day.
Note (for those who are complete code novices): the google provided code is missing the closing > and must be added in manually once you’ve copied and pasted it.
I think where you install it depends on your theme. The first line of the page where you install it has to begin with
For me that happened to be theme.liquid (found in the Layout folder)
In my case Sections/header.liquid isn’t . If your theme.liquid is also, try installing it there instead of the header.liquid (considering you are experiencing issues by placing it there). Don’t forget to add the closing > to the code from google (which is missing it).
Excellent! Adding the missing > at the end of the snippet was all it took. In addition, I changed the location and margin parameters and if anyone else tries, make sure you get the “,” after the ‘RIGHT_BOTTOM’ line or it won’t work.
I’ve got it working fine on our store. And I added their extra code to position it better, which helps.
Two things:
It opens every single time. Has anyone figure out a way that it does open in the wide state each time?
And, has anyone figured out a way to put the badge only on certain pages. Having the badge fire the open/close transition on every page is a little distracting. And, I don’t need it in the cart. Anyone have a way to get it to appear on the homepage only? Maybe some extra liquid code?
Related to the reviews, but unrelated to entering the code. Does anyone know when/where the option for customers to leave a Google review is? I use Stamped.io for my reviews, but don’t really focus on google, but need to now, since this pops up and I only have 10 Google reviews…
I don’t know but would also like to be able to control those features. Since it is in Beta form still, I wonder if we can give feedback to Google some way. I will look into it.