I want to remove the author’s name from embedded links.

#547755
  • Resolved Anonymous
    Rank Math free

    Whenever I link my site on discord, the author’s name shows under the site name and above the page name. How do I remove this?

    Thanks.

    Here’s what it looks like: https://postimg.cc/SnG0TV8m

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

    Thank you for contacting us and we regret the inconvenience caused.

    This is something that happens only with Discord. If you share links to any other Social platform then the link preview will not have the author info but on Discord, you will see the author.

    We do not have an option to disable this from the settings. However, you can try the filter in this thread and see if that fixes the issue: https://wordpress.stackexchange.com/questions/369151/how-to-remove-author-name-and-link-from-a-shared-link-preview

    Here’s the code from the thread:

    add_filter( 'oembed_response_data', 'disable_embeds_filter_oembed_response_data_' );
    function disable_embeds_filter_oembed_response_data_( $data ) {
        unset($data['author_url']);
        unset($data['author_name']);
        return $data;
    }

    You can follow this guide to add the code:
    https://rankmath.com/kb/wordpress-hooks-actions-filters/

    Let us know how that goes.

    Thank you.

    Anonymous
    Rank Math free

    That seems to have done the trick. Thanks a lot!

    Hello,

    We are super happy that this resolved your issue. If you have any other questions in the future, know that we are here to help you.

    If you don’t mind me asking, could you please leave us a review (if you haven’t already) on https://wordpress.org/support/plugin/seo-by-rank-math/reviews/#new-post about your overall experience with Rank Math? We appreciate your time and patience.

    If you do 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.

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

The ticket ‘I want to remove the author’s name from embedded links.’ is closed to new replies.