Published on Feb 2, 2020

Fix for Yoast SEO in Oxygen

Sridhar Katakam

Oxygen has built-in support for Yoast SEO i.e., content from Oxygen editor will be included in Yoast’s SEO analysis.

Unfortunately this is at the expense of content in the WordPress editor getting excluded (as of Oxygen 3.1.1). Github bug report | Facebook topic.

Here is a temporary fix that involves editing a file from Oxygen until this gets officially fixed by Soflyy.

Update: I created a plugin for those who do not feel comfortable editing Oxygen’s files. Get the WPDevDesign Oxygen Yoast SEO plugin.

For those who don’t mind editing Oxygen, here’s the alternate way:

In

/wp-content/plugins/oxygen/component-framework/admin/js/yoast-seo-compatibility.js

change

return ysco_data.oxygen_markup;

to

return data + ysco_data.oxygen_markup;

After this, content in Gutenberg (or class editor) will be parsed and included in Yoast’s SEO analysis.

This modification will get overwritten when Oxygen gets updated which should not be an issue since the next Oxygen update hopefully includes this (or a similar) fix.

tagschevron-leftchevron-rightchainangle-rightangle-upangle-downfolder-omagnifiercrossmenuchevron-down