About code snippet - by Protouch - on WordPress WooCommerce support

This topic has 6 replies, 3 voices, and was last updated 9 years, 11 months ago ago by Eva Kemp

  • Avatar: protouchlink
    Protouch
    Participant
    December 23, 2014 at 13:54

    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.

    5 Answers
    Avatar: stan
    Stan Russell
    Participant
    December 23, 2014 at 14:16

    Hello,

    please specify what type of code do you want to add?

    Regards,
    Stan Russell

    Avatar: protouchlink
    Protouch
    Participant
    December 23, 2014 at 16:35

    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&#8221; 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>

    Avatar: Eva
    Eva Kemp
    Support staff
    December 23, 2014 at 17:11

    Hello,

    You can add the code in header.php file before closing tag </body>.
    Please try it.

    Regards,
    Eva Kemp.

    Avatar: protouchlink
    Protouch
    Participant
    December 23, 2014 at 17:27

    It is done. Thanks.

    Avatar: Eva
    Eva Kemp
    Support staff
    December 23, 2014 at 17:47

    Hello,

    You’re welcome.

    Regards,
    Eva Kemp.

  • Viewing 6 results - 1 through 6 (of 6 total)

The issue related to '‘About code snippet’' has been successfully resolved, and the topic is now closed for further responses

8theme customization service
We're using our own and third-party cookies to improve your experience and our website. Keep on browsing to accept our cookie policy.