Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #1185173
    Rob
    Participant

    I 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!

    #1185203
    Prasant Rai
    Moderator

    Hello 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.

    #1185253
    Rob
    Participant

    That 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?

    #1185264
    Prasant Rai
    Moderator

    Hello 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.

    #1185271
    Rob
    Participant

    Great, thanks!

    #1185529
    Jade
    Moderator

    You’re welcome.

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