Help Placing Code in Header... Not Working!

by npaige
15 replies
  • WEB DESIGN
  • |
hi folks,

i am trying to get my website verified for my google+ page.
it says i am to paste this code into my homepage.

<a href="https://plus.google.com/101413488355339492826" rel="publisher">Google+</a>

i am using the avada theme. i went into the editor - header.php template. i pasted the code just before </head> and it didn't work. it actually made the word "google" visible in my header... something is just wrong!

please help.
thanks so much
#code #header #placing #working
  • Profile picture of the author Nett
    No, <head> is for content that should not be shown to the visitor. Typically, an <a> tag should be inserted in the <body> section.
    {{ DiscussionBoard.errors[8710295].message }}
    • Profile picture of the author npaige
      It should not be shown to the visitor. It is just for verification. You suggest placing it in the body section?


      Originally Posted by Nett View Post

      No, <head> is for content that should not be shown to the visitor. Typically, an <a> tag should be inserted in the <body> section.
      {{ DiscussionBoard.errors[8710306].message }}
  • Profile picture of the author Nett
    Can you take a screenshot of what Google says?
    {{ DiscussionBoard.errors[8710309].message }}
    • Profile picture of the author npaige
      It just said to place code on the homepage. No further instructions.

      Originally Posted by Nett View Post

      Can you take a screenshot of what Google says?
      {{ DiscussionBoard.errors[8710313].message }}
  • Profile picture of the author Nett
    Place it from the WordPress page editor (choose the "text" tab) and add the HTML code. After verification you can just remove it.
    {{ DiscussionBoard.errors[8710319].message }}
    • Profile picture of the author Tiffany Locke
      If the code can be added to the page editor, it should be in the "HTML" tab.

      Originally Posted by Nett View Post

      Place it from the WordPress page editor (choose the "text" tab) and add the HTML code. After verification you can just remove it.
      {{ DiscussionBoard.errors[8710538].message }}
      • Profile picture of the author Nett
        Originally Posted by Tiffany Locke View Post

        If the code can be added to the page editor, it should be in the "HTML" tab.
        There is no HTML tab, only visual tab and plain text tab. The text tab is for HTML codes.
        {{ DiscussionBoard.errors[8710541].message }}
        • Profile picture of the author npaige
          I tried this. It didn't work either. I am meeting with a web tech today. Hopefully he'll be able to figure it out!


          Originally Posted by Nett View Post

          There is no HTML tab, only visual tab and plain text tab. The text tab is for HTML codes.
          {{ DiscussionBoard.errors[8711770].message }}
  • Profile picture of the author ConfusedJ
    Learn how to link a Google+ page to your website

    Doesn't seem all that complicated.
    Signature

    {{ DiscussionBoard.errors[8710322].message }}
  • Profile picture of the author topnichewebsites
    The code you have above is just a link to your Google + ... homepage as that is why you see a link Google + link there.

    The verification process is totally different. They should look like this
    <meta name="google-site-verification" content="xxxxxxxxxxxxxxxxxxxxxxxxxxxx" /> and they go in before the </head>
    Signature
    http://pixelcovers.com/ <- eBook add eCovers

    https://www.unicommercesolutions.com <- WordPress Websites and Maintenance
    {{ DiscussionBoard.errors[8711960].message }}
    • Profile picture of the author npaige
      Well that is strange but makes sense, thanks. When I click the "verify your website" link - that is the code they are giving. Something is off here


      Originally Posted by topnichewebsites View Post

      The code you have above is just a link to your Google + ... homepage as that is why you see a link Google + link there.

      The verification process is totally different. They should look like this
      <meta name="google-site-verification" content="xxxxxxxxxxxxxxxxxxxxxxxxxxxx" /> and they go in before the </head>
      {{ DiscussionBoard.errors[8711975].message }}
  • Profile picture of the author topnichewebsites
    Ahhhhhhhh

    They are just giving you a link you can put on your site for others to get to your page not actually verifying it for them. Add that link that you posted and that's the link surfers will use to get to your site.

    Navigate to ....... https://plus.google.com/101413488355339492826 that's your Google + homepage. Which it is as I just went there.

    No need to verify it like you were thinking on your original post.
    Signature
    http://pixelcovers.com/ <- eBook add eCovers

    https://www.unicommercesolutions.com <- WordPress Websites and Maintenance
    {{ DiscussionBoard.errors[8711987].message }}
    • Profile picture of the author npaige
      thanks so much for the clarification. i must have spent 2 hours trying to get that link to work okay... moving on


      Originally Posted by topnichewebsites View Post

      Ahhhhhhhh

      They are just giving you a link you can put on your site for others to get to your page not actually verifying it for them. Add that link that you posted and that's the link surfers will use to get to your site.

      Navigate to ....... https://plus.google.com/101413488355339492826 that's your Google + homepage. Which it is as I just went there.

      No need to verify it like you were thinking on your original post.
      {{ DiscussionBoard.errors[8711994].message }}
      • Profile picture of the author BrandByApi
        Just for future references. When you are putting HTML into a PHP page, make sure that the HTML is not within a starting "<?php" or closing "?>". This is the problem I see a lot of people doing with WordPress/Magento since the HTML and PHP are co-mingled.
        {{ DiscussionBoard.errors[8712126].message }}
  • Profile picture of the author topnichewebsites
    at least it wasn't more than 2 hours
    Signature
    http://pixelcovers.com/ <- eBook add eCovers

    https://www.unicommercesolutions.com <- WordPress Websites and Maintenance
    {{ DiscussionBoard.errors[8712341].message }}

Trending Topics