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

  • Resolved Asome



    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


    @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:

    Thread Starter Asome


    I used %% excerpt %%. The description includes the YouTube URL (example: Article:

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

    Plugin Support Suwash


    @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 This has proven to be useful to many developers in the past, and hopefully will serve you well too.

    Thread Starter Asome


    Thanks for answers =)

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Delete YouTube URL from description’ is closed to new replies.