How to change Jetpack-inserted twitter:description tag
-
I pasted the link into a Slack conversation and it shows my featured image and the text “Visit the post for more.” This is both incorrect, as it’s a Page, and also doesn’t really mean much in the context of the page.
I discovered that Jetpack is adding this meta tag:
<meta name=”twitter:description” content=”Visit the post for more.”/>Looking at the code it seems hard code this text based on some complex logic with the other meta tags that I cannot follow. How can I get it to say something more meaningful?
The page I need help with: [log in to see the link]
-
Hi @zkarj
Can you point us to a specific page as an example? I tried a number of your pages in Slack, and they appeared to render correctly.
If you want it to remain private, you can also contact us via this contact form. If you choose to reach out directly, please include a link to this thread.
Thanks!
Hi. The home page I linked shows the issue:
<!-- Jetpack Open Graph Tags --> <meta property="og:type" content="website" /> <meta property="og:title" content="And now..." /> <meta property="og:url" content="https://andnow.me/" /> <meta property="og:site_name" content="And now..." /> <meta property="og:image" content="https://andnow.me/wp-content/uploads/2022/02/andnow.png" /> <meta property="og:image:width" content="720" /> <meta property="og:image:height" content="412" /> <meta property="og:image:alt" content=""And now..." logo" /> <meta name="twitter:site" content="@zkarj" /> <meta name="twitter:text:title" content="And now…" /> <meta name="twitter:image" content="https://andnow.me/wp-content/uploads/2022/02/andnow.png?w=640" /> <meta name="twitter:image:alt" content=""And now..." logo" /> <meta name="twitter:card" content="summary_large_image" /> <meta name="twitter:description" content="Visit the post for more." /> <!-- End Jetpack Open Graph Tags -->That last meta tag has the content “Visit the post for more.” and this shows up as text (along with the site name and title) when I paste the link in Slack. I don’t want that text there. It should be something more meaningful, such as the first text on the page or something at least specific to the page. Or even absent.
Hi @zkarj
There is no way to adjust these from within Jetpack, but you may be able to use some custom code to change what is displayed. This would be out of the scope of what we can support, but this post, while not exactly what you’re trying to do, might get you pointed in the right direction:
Thanks, I managed to quickly adapt that.
The topic ‘How to change Jetpack-inserted twitter:description tag’ is closed to new replies.