

نحوه قرار دادن گوگل پلاس +۱ (Google Plus One )
دسته بندی : ترفندهای اینترنتی ,

امروز برایتان نحوه گذاشتن گوگل پلاس 1 برایتان آماده کرده ایم. امیداوریم خوشتان بیاید. کدهای قرار دادن گوگل پلاس +1 در ادامه مطلب ... به قسمت وبمستر پلاس وان گوگل بروید تا دکمه را دریافت کنید . لینک : http://www.google.com/webmasters/+1/button سایز دکمه را انتخاب کنید Advanced options را بزنید و در قسمت URL to +1 آدرس سایت خودتون رو تایپ کنید . مرحله ۲ : کد گرفته شده مثلاً به این صورت است : <!– Place this tag where you want the +1 button to render –> <!– Place this render call where appropriate –> (function() { در هدر سایتتون یعنی header.php <!– Update your html tag to include the itemscope and itemtype attributes –> <!– Add the following three tags inside head –>
توجه : ایران تحریم می باشد آپی خود را تغییر دهید.
<g:plusone annotation=”inline” href=”http://www.iruniha.ir></g:plusone>
<script type=”text/javascript”>
window.___gcfg = {lang: ‘fa’};
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>
و کد:
<html itemscope itemtype=”http://schema.org/Article”>
<meta itemprop=”name” content=”ایرونیها”>
<meta itemprop=”description” content=”ایرونی ها پورتال جامعه , خوش آمدید”>
<meta itemprop=”image” content=”http://dl.iruniha.ir/iruniha1.jpg”>

مطالب مرتبط