Tagged: x
-
AuthorPosts
-
September 21, 2016 at 1:35 pm #1185173
RobParticipantI received this line of code…
<meta name=”p:domain_verify” content=”1b700d3f6ac2cbd89128b868c5f58204″/>
…from my client with a request to add it to the <head></head> section of the website. I just tried adding this to functions.php and it broke the site. Luckily I reverted to a clean backup. Please let me know how I can add this without breaking anything. Should I get into my files on the server?
Also wondering if there will ever be an easier way to go about this in a future release via plugin, addon, etc?
Thank you!
September 21, 2016 at 1:52 pm #1185203
Prasant RaiModeratorHello There,
Thanks for writing in!
You can add following code into your Child Theme’s functions.php file.
add_action( 'wp_head', 'my_custom_meta', 10 ); function my_custom_meta(){ echo '<meta name=”p:domain_verify” content=”1b700d3f6ac2cbd89128b868c5f58204″/>'; }Hope that helps.
September 21, 2016 at 2:19 pm #1185253
RobParticipantThat worked, thank you! In the future is this the code I’d have to use if I ever want to add code to the <head> section?
September 21, 2016 at 2:25 pm #1185264
Prasant RaiModeratorHello There,
Thanks for writing in!
Yes, you can use the above code. All you need to do is replace
<meta name=”p:domain_verify” content=”1b700d3f6ac2cbd89128b868c5f58204″/>as per future requirements.Thanks.
September 21, 2016 at 2:28 pm #1185271
RobParticipantGreat, thanks!
September 21, 2016 at 6:09 pm #1185529
JadeModeratorYou’re welcome.
-
AuthorPosts
- <script> jQuery(function($){ $("#no-reply-1185173 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>
