Support » Plugin: Yoast SEO » Delete YouTube URL from description

  • Resolved Asome

    (@asome)


    Hi!

    In my blog, many articles begin with an embedded video from YouTube. A link to the video on YouTube is automatically inserted into the description. How to prevent the link from appearing?

    The site often contains posts with videos from YouTube. Therefore, it is inconvenient to insert the description manually

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Support devnihil

    (@devnihil)

    @asome You can configure template settings for how the meta description should be generated for a page or post and these settings will automatically be applied unless a description is manually set for a page/post.

    You can configure these settings for the meta description in WordPress under SEO>Search Appearance>Content Types. We also have information on using template variables within these settings at the following link: https://yoast.com/help/list-available-snippet-variables-yoast-seo/

    Thread Starter Asome

    (@asome)

    I used %% excerpt %%. The description includes the YouTube URL (example: https://www.youtube.com/watch?v=frV36avplB8. Article: https://asome.ru/tomb-raider-2018-red-cynic/)

    Can i add something to the code to exclude URL from the description?

    Plugin Support Suwash Kunwar

    (@suascat_wp)

    @asome since your article’s content begins with an embedded video from YouTube and that you’re using %%excerpt%% variable in the global template, Yoast SEO automatically fetches the excerpt content in your meta description. We understand you want to exclude the URL from that description a smart way.

    As much as we hate to say it, your question goes beyond the technical expertise of me and my colleagues on the Yoast support team. This means we can’t give you a solid answer to your question.

    But we don’t want to leave you empty-handed either, that’s why we’ve created our developer portal at developer.yoast.com. This has proven to be useful to many developers in the past, and hopefully will serve you well too.

    Thread Starter Asome

    (@asome)

    Thanks for answers =)

Viewing 4 replies - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.