Adding meta HTML to header tags

Where can I add HTML to the header using X theme? I’m trying to add meta data using the ‘meta property=“og:”’ tag to change how the my website shows up when the link is shared on facebook.

I see where to add CSS and Javascript but not html…

Hi there,

First of all, you need to go to X > Theme Options > Social > Open Graph and disable that feature there, as it will automatically add the meta tags in question and it will interfere with your code.

After that please install the Child Theme and use the wp_head action to add the HTML code like the sample below:

add_action('wp_head', 'head_information', 9999);

function head_information () { ?>
<!-- Your HTML Code Here -->
<?php }

Change <!-- Your HTML Code Here --> with your HTML code.

Thank you,

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.