Navigation
This is archived content. Visit our new forum.
  • Author
    Posts
  • #154213
    s1344678
    Participant

    I would like to remove the meta tags from visual composer. They collide with my Yoast Seo meta properties. My meta description says
    <meta property=”og:site_name” content=”mywebsite.com”><meta property=”og:title” content=”page title”><meta property=”og:description” content=”[vc_row][vc_column width=”1/1″][text_output][content][/text_output][/vc_column][/vc_row][vc_row][vc_column width=”1/3″][vc_widget_sidebar sidebar_id=”header-1″][/vc_column][vc_column width=”1/3″][vc_widget_sidebar sidebar_id=”header-2″][/vc_column][vc_column width=”1/3″][vc_widget_sidebar sidebar_id=”header-3″][/vc_column][/vc_row][vc_row][vc_column width=”1/3″][/vc_column][vc_column width=”2/3″][text_output][fbcomments][/text_output][/vc_column][/vc_row]…”><meta property=”og:image” content=””><meta property=”og:url” content=”https://lifeintheuktests.co.uk/life-in-the-uk-test-1/”><meta property=”og:type” content=”article”><meta name=”generator” content=”Powered by Visual Composer – drag and drop page builder for WordPress.”/>

    I need this to set up facebook comments, which find the description from the visual composer, and when people share it the description comes up as [vc_row][vc_column width=”1/1″][text_output] and so on.

    #154216
    s1344678
    Participant
    This reply has been marked as private.
    #154253
    Mikhail M
    Participant

    Put this code in function.php – it will remove VC meta tags

    add_action('init', 'myoverride', 100);
    function myoverride() {
        remove_action('wp_head', array(visual_composer(), 'addMetaData'));
    }
    #154254
    grossmanje
    Participant

    Any luck with this? I’m having the same issue.

    Thank you!
    Jason

    #154256
    Mikhail M
    Participant

    The code above works perfect for me. Just insert it at the very end of theme function.php file

    #154435
    s1344678
    Participant

    Yes, works great so far. Thanks

    #154476
    s1344678
    Participant
    This reply has been marked as private.
    #154614
    Zeshan
    Member

    Hi Guys,

    We’re sorry for the trouble!

    To fix this issue, please go to the Customizer and select Off under Social > OpenGraph > OpenGraph Enable.

    To Mikhail, thank you for helping out other fellow members 🙂

    Thanks!

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