Title: Replace description content via JavaScript
Last modified: April 24, 2023

---

# Replace description content via JavaScript

 *  Resolved [inweco](https://wordpress.org/support/users/inweco/)
 * (@inweco)
 * [3 years, 1 month ago](https://wordpress.org/support/topic/replace-description-content-via-javascript/)
 * Hello,
   we are currently working on an extension for the Yoast-plugin as our own
   custom plugin. One of the features of our plugin requires that the seo-description-
   content gets replaces via JavaScript / jQuery. We have been able to replace the
   content of the textarea and the hidden input-field. The only issue is that the
   yoast-variable-buttons can not be used after we have replaced the description
   content. In this case the yoast-plugin throws an error, and the site has to be
   reloaded in order to resolve this error. Our developers have spent quite a lot
   of time researching this topic on google but they haven’t been able to find a
   solution to it which leads us to this topic. It seems like the yoast-plugin stores
   the original description-content in some other place (variable or object) which
   we haven’t been able to find. Can anybody help with this issue? Any help would
   be appreciated!

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

 *  Plugin Support [Maybellyne](https://wordpress.org/support/users/maybellyne/)
 * (@maybellyne)
 * [3 years, 1 month ago](https://wordpress.org/support/topic/replace-description-content-via-javascript/#post-16684648)
 * Hello [@inweco](https://wordpress.org/support/users/inweco/),
 * Thanks for using the Yoast SEO plugin. Please check out our [developer portal](https://developer.yoast.com/)
   for extra customizations beyond what’s possible in the plugin settings UI.
 *  Thread Starter [inweco](https://wordpress.org/support/users/inweco/)
 * (@inweco)
 * [3 years, 1 month ago](https://wordpress.org/support/topic/replace-description-content-via-javascript/#post-16686406)
 * Thanks…

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

The topic ‘Replace description content via JavaScript’ is closed to new replies.

 * ![](https://ps.w.org/wordpress-seo/assets/icon-256x256.gif?rev=3419908)
 * [Yoast SEO - Advanced SEO with real-time guidance and built-in AI](https://wordpress.org/plugins/wordpress-seo/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wordpress-seo/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wordpress-seo/)
 * [Active Topics](https://wordpress.org/support/plugin/wordpress-seo/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wordpress-seo/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wordpress-seo/reviews/)

## Tags

 * [javascript](https://wordpress.org/support/topic-tag/javascript/)
 * [jquery](https://wordpress.org/support/topic-tag/jquery/)

 * 2 replies
 * 2 participants
 * Last reply from: [inweco](https://wordpress.org/support/users/inweco/)
 * Last activity: [3 years, 1 month ago](https://wordpress.org/support/topic/replace-description-content-via-javascript/#post-16686406)
 * Status: resolved