This topic has 6 replies, 3 voices, and was last updated 9 years, 11 months ago ago by Eva Kemp
Hello,
How do I add custom code snippet in my site’s homepage? As far I know function.php file not support html markup. So is there any custom process to add that, or may I’ve to install additional plugin for that. Can you give me any recommendation? I want to add google+ code snippet.
Hello,
please specify what type of code do you want to add?
Regards,
Stan Russell
I want to add code snippet for my google+ page, so that I’ll be able to display my google+ page beside the search result of google. I create my page and also verified by webmaster of google but now I’ve to add some link in the head section of my site’s homepage. But as wordpress don’t have specific html page – as I know it is auto generated so I’m not able to insert the code snippet. Hope you understand the problem.
Something like that
<!– Place this tag in your head or just before your close body tag. –>
<script src=”https://apis.google.com/js/platform.js” async defer></script>
<!– Place this tag where you want the widget to render. –>
<div class=”g-page” data-href=”//plus.google.com/u/0/” data-rel=”publisher”></div>
Hello,
You can add the code in header.php file before closing tag </body>
.
Please try it.
Regards,
Eva Kemp.
It is done. Thanks.
Hello,
You’re welcome.
Regards,
Eva Kemp.
The issue related to '‘About code snippet’' has been successfully resolved, and the topic is now closed for further responses