Tagged: x
-
AuthorPosts
-
June 18, 2016 at 12:21 pm #1048563
Ian_BonnerParticipantHi,
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 dateJune 18, 2016 at 12:28 pm #1048564
Ian_BonnerParticipantThis reply has been marked as private.June 18, 2016 at 1:16 pm #1048579
Ian_BonnerParticipantThis reply has been marked as private.June 18, 2016 at 11:28 pm #1048932
Rue NelModeratorHello 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.
June 19, 2016 at 5:07 am #1049120
Ian_BonnerParticipantThats great! Thank you so much. 🙂
So if I add other search engine verification do I enter it now under the Google code?
June 19, 2016 at 10:35 am #1049315
ChristianModeratorYou’re welcome. Yes, you can put code that needs to be placed in the head under the Google code.
June 19, 2016 at 4:33 pm #1049555
Ian_BonnerParticipantThank you for your help. Great support as usual! 🙂
June 19, 2016 at 8:09 pm #1049776
NicoModeratorHappy to hear that.
Feel free to ask us again.
Thanks.
-
AuthorPosts
- <script> jQuery(function($){ $("#no-reply-1048563 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>
