Search code examples
htmlmetaoxwall

Oxwall - Remove meta tags


How can i remove meta tags in Oxwall software or any software. The Oxwall core loads on auto wrong Facebook meta tags.

Wrong value (generated by Oxwall):

<meta name="og:type" content="website" />

Correct value:

<meta property="og:type" content="website" />

Thanks in Advance


Solution

  • You can include the following line to your base or plugin init.php file. If you are not working with a plugin open /ow_system_plugins/base/init.php and add the following code:

    function modify_custom_meta_property(){
        OW::getDocument()->addMetaInfo('og:type', 'website', 'property');
    }
    OW::getEventManager()->bind(OW_EventManager::ON_BEFORE_DOCUMENT_RENDER, 'modify_custom_meta_property');