Navigation
This is archived content. Visit our new forum.
  • Author
    Posts
  • #265709

    jubril
    Participant

    Hello,

    How can I include google apps for work verification meta tag to the header of my homepage.

    #265763

    Thai
    Moderator

    Hi There,
    Thanks for writing in.
    Because this requires a template change, I’d advise that you setup a child theme. This allows you to make code changes that won’t be overwritten when an X update is released. After your child theme is setup, please add following PHP code below into functions.php locates in child theme’s folder:

    
    add_action("wp_head", "x_add_google_code");
    function x_add_google_code(){
      ?>
      <meta name="google-site-verification" content="PLP2w5np4oUWb8L4HDmqNaL8T-qbMMVwGnlwG40dtHc" />
      <?php
    }
    

    Hope it helps.

    #652683

    goodgood
    Participant

    Hi I tried to do this and have now been locked out of the entire site and am only getting the following message when I try to log in:

    Parse error: syntax error, unexpected ‘}’ in /home/goodgoodiu/www/wp-content/themes/x-child-ethos/functions.php on line 5

    #652839

    Jade
    Moderator

    Hi there,

    Would you mind providing us with login credentials so we can take a closer look? To do this, you can make a post with the following info:

    – Link to your site
    – WordPress Admin username / password
    – FTP credentials

    Don’t forget to select Set as private reply. This ensures your information is only visible to our staff.

    #653487

    goodgood
    Participant

    I made another post related to this and provided login info there. Thank you so much for your help!

    All best,
    ALB

    #653533

    Paul R
    Moderator

    You’re welcome! 🙂