Hey there,
Somehow the inline style is corrupted. It currently shows this:
<div class="gpr-business-avatar" style="background-image: https://maps.googleapis.com/maps/api/place/photo?photoreference=CoQBdwAAALmPJv7jGcuI65RRf93dr0wJZPUaKLqaMrUzsHiM7fPC1-8JKz9_NnjxoqPwb-AkUmJCAJjnz7t5HSZx-dGnh6SuzuXmq5LYsdn25rmyVwC0xCSYR8PnWKCAYFIgOwTF-tyKZOmUdZek2oXIr0osKa6DtYUV1gfZ4FJ5nKMUZ_-DEhD5ddONAUMuya98oHeyX1zuGhQ0bcifk2N_wIjQlIhgJrh9noAMKA&key=AIzaSyA9xMut6QQwpfzqK5rE96m6RA52OEvxysk&maxwidth=300&maxheight=300;"></div>
Notice it’s missing url('https...');
I’ll try to replicate that issue and get back to you. I would think if it was a wide-spread issue we’d be getting a lot more reports from users of this kind of breakage. But I’ll let you know what I find soon. Thanks!
Thanks Matt, I did set it up on 2 different word press installations today to test it.
They both had different themes, so I’m not sure what could be effecting that CSS :/ and you are right about that missing url('https...');
that is most odd…
Please let me know how your test goes and thank you for supporting this plug-in as well as you do!
Hi Matt, I know you are looking into this, but I did a bit more testing on different wordpress sites in case I could somehow get it working myself…
I tried the plug-in on 3 separate websites and it did the same on all of them:
http://sam-fullalove.uk.to/
http://sam.fullalove.co/
and another.
If I am doing something wrong, or the same across all of these, then I don’t know what it is 🙁
the solution is >> plugins >> google-places-reviews >> inc >> widget-frontend.php
Line 34 find:
<div class=”gpr-business-avatar” style=”background-image: <?php echo $place_avatar; ?>;”></div>
replace with:
<div class=”gpr-business-avatar” style=”background-image: url(‘<?php echo $place_avatar; ?>’);”></div>
so long
-
This reply was modified 7 years, 9 months ago by Burner0815.
-
This reply was modified 7 years, 9 months ago by Burner0815.
Thank you Burner. I just did as you suggested, however now the html output is: <div class="”gpr-business-avatar”" style="”background-image:" url(‘https:="" maps.googleapis.com="" maps="" api="" place="" photo?photoreference="CoQBdwAAALmPJv7jGcuI65RRf93dr0wJZPUaKLqaMrUzsHiM7fPC1-8JKz9_NnjxoqPwb-AkUmJCAJjnz7t5HSZx-dGnh6SuzuXmq5LYsdn25rmyVwC0xCSYR8PnWKCAYFIgOwTF-tyKZOmUdZek2oXIr0osKa6DtYUV1gfZ4FJ5nKMUZ_-DEhD5ddONAUMuya98oHeyX1zuGhQ0bcifk2N_wIjQlIhgJrh9noAMKA&key=AIzaSyA9xMut6QQwpfzqK5rE96m6RA52OEvxysk&maxwidth=300&maxheight=300’);”"></div>
:/ your suggestion made perfect sense to me, but I don’t understand why my html is not being output like this… my line 34 is now:
<div class=”gpr-business-avatar” style=”background-image: url(‘<?php echo $place_avatar; ?>’);”></div>
This is the website I tested it on: http://sam-fullalove.uk.to/
may the wrong quotation marks?
<div class="gpr-business-avatar" style="background-image: url('<?php echo $place_avatar; ?>');"></div>
-
This reply was modified 7 years, 9 months ago by Burner0815.
ah ha….thank you very much Burner, that worked. I feel silly that I missed those.
Ok, well this seems to be the solution. I hope Matt can include this in the next update 🙂
We will for sure. Thanks!