This PHP code will help you to Get Google Plus One button it will be unique to the page.
when you put that code somewhere on the proddetail page, it will be like putting it on all product detail pages because they are dynamically created.
It should be as simple as opening your proddetail.php page and look in the content area for the line that calls up the product details.
<?php include "vsadmin/inc/incproddetail.php" ?>
right below that insert
<g:plusone></g:plusone>
then at the bottom of the page put this
<!-- Place this tag after the last plusone tag -->
<script type="text/javascript">
(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>
save/upload the proddetail.php to the server and that should do it.
when you put that code somewhere on the proddetail page, it will be like putting it on all product detail pages because they are dynamically created.
It should be as simple as opening your proddetail.php page and look in the content area for the line that calls up the product details.
<?php include "vsadmin/inc/incproddetail.php" ?>
right below that insert
<g:plusone></g:plusone>
then at the bottom of the page put this
<!-- Place this tag after the last plusone tag -->
<script type="text/javascript">
(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>
save/upload the proddetail.php to the server and that should do it.
0 comments:
Post a Comment