-
I would like to disable the description on Facebook because it’s damn hard to write something in a confined space. So I’ll just enter a title.
-
Hello,
Thanks for contacting us and sorry for any inconvenience that might have been caused due to that.
The og:description is automatically taken from your SEO description and you don’t have to add it manually. However, if you want to disable the og:description then you can modify and use the following filter: https://rankmath.com/kb/filters-hooks-api-developer/#change-specific-social-meta
Here is how to add the filter to your site: https://rankmath.com/kb/filters-hooks-api-developer/
Hope this helps. Let us know if you need any other assistance.
Why are facebook descriptions back?
Hello,
Can you please share the affected URL with us so we can further check it on our end?
Looking forward to helping you on this one.
[redacted for privacy]
Hello,
It seems the og description tag is still there.
Can you please confirm if you created a filter similar to this syntax?
add_filter( "rank_math/opengraph/facebook/og_description", '__return_false');
If not, kindly try this code, clear your website cache and try checking again.
Looking forward to helping you on this one.
I still have problems.
Hello,
I checked the source of your website but was unable to replicate the issue. The og:description tag is already removed. Here’s a screenshot: https://i.rankmath.com/QZkOgx
Please clear your website, browser, and server’s cache (if any) and see if that helps.
Let us know how that goes.
Thank you.
I had already done so. Nothing changes.
Hello,
I can check that Facebook is reporting the og:description tag missing for your homepage. However, it is still generating the description from the meta description field of your page.
So there is nothing you can do in this case as Facebook generates the missing properties from the content of your page when generating a link preview.
Hope this clarifies your doubts. Please don’t hesitate to get in touch in case you need any other assistance.
Thanks.
Are you saying I can’t have a blank description for Facebook? How do I recover the Facebook descriptions that I have deleted these days?
Hello,
If the og:description tag is not found, Facebook can pick the description from other places like the meta description or content of the page. Unfortunately, there is no direct way of disabling the description for Facebook as it is a required property.
However, you can follow the solution given here to set the og:description to an HTML escape character and that should remove the description in Facebook: https://stackoverflow.com/questions/33593267/how-to-set-facebook-ogdescription-empty
Here’s the code you can add to the website to set the og:description to
(single space character):/** * Allow changing the meta description sentence from within the theme. * * @param string $description The description sentence. */ add_filter( 'rank_math/frontend/description', function( $description ) { return ' '; });
You can follow this guide to add the filter to the website:
https://rankmath.com/kb/wordpress-hooks-actions-filters/Please ensure to remove the code you added previously to remove the og:description tag.
Once done, clear your website and browser’s cache and test the URL with Facebook again to see if you get the desired output.
Hope this helps.
Thank you.
Hello,
Since we did not hear back from you for 15 days, we are assuming that you found the solution. We are closing this support ticket.
If you still need assistance or any other help, please feel free to open a new support ticket, and we will be more than happy to assist.
Thank you.
The ticket ‘How do I disable the description on Facebook?’ is closed to new replies.