Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #1048563
    Ian_Bonner
    Participant

    Hi,

    I have tried to add Google verification to my child them functions page. I am now being given the following message:

    Parse error: syntax error, unexpected ‘}’ in /www/sites/baa/60b/www.bcreativebranding.co.uk/web/wp-content/themes/x-child/functions.php on line 12

    I am pretty amateur at this but cannot see where this problem is. Would it be possible for someone to correct this for me as I am stuck now and cannot access my site?

    Thank you in advance.

    http://www.bcreativebranding.co.uk
    Wordpress 4.5.2 (I think? I can’t check this at the moment)
    X Theme Integrity and Cornerstone all up to date

    #1048564
    Ian_Bonner
    Participant
    This reply has been marked as private.
    #1048579
    Ian_Bonner
    Participant
    This reply has been marked as private.
    #1048932
    Rue Nel
    Moderator

    Hello There,

    Thanks for writing in! It turns out that you have added a code that messed out your site. You have this:

    
    // add_action('wp_head','cmk_google_verifiy_meta'); function cmk_google_verifiy_meta() { ?>  
      <meta name="google-site-verification" content="1d-LCa95NBgLRwKRVNp1BKH3lJf1l-fz2tfOYb_mzfI" />
     <?php }

    I went ahead and fixed it. I ended up modifying the code into this:

    // Add Google site verification
    add_action('wp_head','cmk_google_verifiy_meta'); 
    function cmk_google_verifiy_meta() { ?>  
      <meta name="google-site-verification" content="1d-LCa95NBgLRwKRVNp1BKH3lJf1l-fz2tfOYb_mzfI" />
     <?php }

    The issue has been fixed and you can now logged in back to your site.

    #1049120
    Ian_Bonner
    Participant

    Thats great! Thank you so much. 🙂

    So if I add other search engine verification do I enter it now under the Google code?

    #1049315
    Christian
    Moderator

    You’re welcome. Yes, you can put code that needs to be placed in the head under the Google code.

    #1049555
    Ian_Bonner
    Participant

    Thank you for your help. Great support as usual! 🙂

    #1049776
    Nico
    Moderator

    Happy to hear that.

    Feel free to ask us again.

    Thanks.

  • <script> jQuery(function($){ $("#no-reply-1048563 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>