|
hi,
i am trying to add the G+ badge to my store in one of the info boxes. i got it to show up and it is clickable, but wanted to make it open in a new window and also to remove the extra whitespace that appears below the badge (about an inch).
following the G+ directions, i added these 2 pieces of code to the relevant infobox php:
(1) this one i added at the top of the php code, before the <tr> designation:
<link href="https://plus.google.com/xxxxxxxxxxxxx" rel="publisher" /><script type="text/javascript"> window.___gcfg = {lang: 'en'}; (function() {var po = document.createElement("script"); po.type = "text/javascript"; po.async = true;po.src = "https://apis.google.com/js/plusone.js"; var s = document.getElementsByTagName("script")[0]; s.parentNode.insertBefore(po, s); })();</script>
(2) this one i added within the code where i wanted it to render:
<g:plus href="https://plus.google.com/xxxxxxxxxxxxxx" width="100" height="131" theme="light"></g:plus>
i tried adding the TARGET="_blank" in the usual spot, as well as various other spots, but the link will not open in a new window. i am not a pro coder, but looking at the G+ code, it doesnt look like your run of the mill image link dealeo, so i assume something different needs to be done for this to work (?).
also, i tried fiddling with the code to remove the white space that appears below the badge to no avail.
if someone could enlighten me, i'd appreciate it!
thanks!
max
_________________ B2B 6.4.1 with MVS enabled
|