LinkedIn is not showing the SEO title

#358305
  • Resolved Jeremy
    Rank Math free

    LinkedIn is not showing the SEO title when I try to post links to my site. Instead, it is just showing the title of the page in WordPress. For example, my homepage is simply titled “Home” in the WordPress editor, whereas the SEO title says what my site is about. However, LinkedIn just shows “Home” as the title when I try to share the link to my homepage.

    The LinkedIn Post Inspector says “Note: We used the value from the provided oEmbed tag on the page.” It provides this example:

    <meta name=”title” property=”og:title” content=”[Content title here]”>

    I note that RankMath produces these two meta tags, neither of which are same format:

    <title>This is an Example Title</title>
    <meta property=”og:title” content=”This is an Example Title” />

    I wonder if the different format is the reason LinkedIn refuses to recognize the SEO title I have entered in RankMath. More specific details provided in the sensitive data. Please help me troubleshoot and resolve!

    ===
    Facebook: https://i.rankmath.com/7LI041
    Twitter: https://i.rankmath.com/9Vtowl

Viewing 7 replies - 1 through 7 (of 7 total)
  • Hello,

    Thank you for contacting the support, and sorry for any inconvenience that might have been caused due to that.

    I checked the affected page and it seems the title is already added correctly. I inspected it to other social media sharing checkers and it seems to work fine. Please refer to my screenshots in the Sensitive Data section.

    Please clear your website cache including any server-level caching app that might be still caching your homepage.

    Let us know how that goes. Looking forward to helping you.

    Jeremy
    Rank Math free

    I did not say that Facebook and Twitter do not pull the SEO title correctly. I am aware that Facebook and Twitter do recognize the SEO title. I thought I was clear that the problem is with LinkedIn, so I’m puzzled as to why you would try to recreate the problem with Facebook and Twitter instead of LinkedIn.

    I did already try clearing my browser cache and my website’s cache (WP Rocket), and this did not resolve the issue.

    Please use LinkedIn’s Post Inspector to recreate the problem as I originally suggested in the Sensitive Data section (not Facebook’s or Twitter’s share debuggers). Then please advise as to how this can be fixed.

    Hello,

    Please note that LinkedIn prioritizes the oEmbed code instead of the OpenGraph meta tags, that’s why your OpenGraph is not being used when sharing.

    For a workaround, you can add this in the last line of your active theme’s functions.php file, and this will remove links on your site:

    remove_action( 'wp_head', 'wp_oembed_add_discovery_links', 10 );
    

    Please do take a complete backup of your website before applying any filter on your site.

    Once done, clear your website’s cache and check again using the inspector tool.

    I hope that helps.

    Thank you.

    Jeremy
    Rank Math free

    Hi Jaideep,

    Thank you for that solution. It worked! For anyone else having this problem, I suggest adding the code to a functions.php file in a child theme rather than editing the parent theme files.

    Hello,

    We are super happy that your issue has been addressed.

    If you have another question in the future, please feel free to create a new forum topic, and it will be our pleasure to assist you again.

    Thank you.

    Hi

    Thank you for your question and the corresponding solution. It took me hours to solve this problem.

    While the code snipped provided did the trick for me, I think that Rank Math should implement a setting to address this issue, since we are talking about LinkedIn which is probably the most important social media platform in the B2B world. Just providing a hack buried in a support forum doesn’t seem the proper way to handle this.

    Thank you for considering this.

    Kind regards,
    Martin

    Hello @Metoki Gmbh,

    Thank you for contacting Rank Math support today.

    We are constantly improving our plugin, some options are not available in our UI and at the moment, it is only available through our filter code.

    With that said, your input/suggestion is very much valuable and we have noted it. Thank you so much for sharing it here.

    Please do not hesitate to let us know if you need our assistance with anything else.

Viewing 7 replies - 1 through 7 (of 7 total)

The ticket ‘LinkedIn is not showing the SEO title’ is closed to new replies.