简体   繁体   English

从Wordpress网站在Facebook上共享时删除元数据和标题

[英]Removing meta and title when sharing on facebook from a wordpress site

在此处输入图片说明

Hello guys, is there any way to remove the highlighted (meta, date, author and title) when being shared on Facebook? 大家好,在Facebook上分享时,有什么方法可以删除突出显示的内容(日期,日期,作者和标题)? It looks awful and redundant. 看起来很糟糕而且很多余。 I tried several plugins, but it also removes the meta on the page which looks really weird and unnecessary. 我尝试了几个插件,但它也删除了页面上看起来很奇怪和不必要的元数据。

I just wanted to remove this when I'm sharing it on facebook/social media. 我要在Facebook /社交媒体上共享它时将其删除。

I'm using the Twenty Seventeen Theme by the way. 顺便说一下,我正在使用二十七个主题。 TIA! TIA!

Facebook uses something called the Open Graph Protocol to determine what to display when a website is shared. Facebook使用一种称为“ 开放图谱协议”的方法来确定共享网站时显示的内容。 Basically what it is is a set of meta tags you can add to your HTML head to tell Facebook what to show. 基本上,这是一组元标记,您可以将其添加到HTML头中以告诉Facebook显示什么。 If you don't have those meta tags in place, it will try to guess, and sometimes it does a bad job, as you are seeing here. 如果您没有这些meta标记,它将尝试猜测,有时效果会很差,正如您在此处看到的那样。

There are a number of plugins out there that can help give you better control over what Facebook shows by setting up the right meta tags for you. 有许多插件可以通过为您设置正确的元标记来帮助您更好地控制Facebook所显示的内容。 Twitter has it's own set of meta tags it uses so I'd try a plugin that handles multiple services. Twitter具有它自己的一组元标记,因此我会尝试处理多种服务的插件。 I'd recommend trying out Yoast . 我建议尝试Yoast It does much more than social media meta tags, but the SEO tools it gives you are pretty great too. 它的功能远不止社交媒体元标记,但它为您提供的SEO工具也很棒。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM