-
AuthorPosts
-
November 27, 2014 at 5:26 pm #154213
s1344678ParticipantI 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.
November 27, 2014 at 5:28 pm #154216
s1344678ParticipantThis reply has been marked as private.November 27, 2014 at 8:33 pm #154253
Mikhail MParticipantPut 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')); }November 27, 2014 at 8:34 pm #154254
grossmanjeParticipantAny luck with this? I’m having the same issue.
Thank you!
JasonNovember 27, 2014 at 8:39 pm #154256
Mikhail MParticipantThe code above works perfect for me. Just insert it at the very end of theme function.php file
November 28, 2014 at 7:19 am #154435
s1344678ParticipantYes, works great so far. Thanks
November 28, 2014 at 8:35 am #154476
s1344678ParticipantThis reply has been marked as private.November 28, 2014 at 11:32 am #154614
ZeshanMemberHi 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!
-
AuthorPosts
- <script> jQuery(function($){ $("#no-reply-154213 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>
