faustjs icon indicating copy to clipboard operation
faustjs copied to clipboard

No Index tag on SEO Components

Open monzuralam opened this issue 1 year ago • 6 comments

Recently, I used faustjs on my headless WordPress Project. my development ongoing. So, I want to discourage search engines on my website.

In SEO, Compoenets there are no features about it.

File Location: components/SEO/SEO.js

By default index behavior is true, if anyone wishes to noindex then just pass props false;

monzuralam avatar Mar 23 '24 06:03 monzuralam

Hey @monzuralam. Is there a particular issue you are facing here? Thanks

theodesp avatar Mar 25 '24 10:03 theodesp

Hey @theodesp, I can fix it on my current project by modifying the SEO Component. But I think it should be updated globally. In WordPress, we can add an index & no index tag on any page/post. Faustjs is a WordPress Headless framework, We should update it on the SEO component & smoothly manage the index & no index tag.

Currently, in this framework, we can't manage it.

monzuralam avatar Mar 27 '24 05:03 monzuralam

Hey @monzuralam . Thanks for the report. Would you be able to submit a PR about it?

theodesp avatar Mar 27 '24 11:03 theodesp

Ideally noindex would be tied to the "Discourage search engines from indexing this site" setting under Settings > Reading in wp-admin. It looks like WPGraphQL does not expose this setting under readingSettings. I think we need to open an issue/PR upstream before we can support it here.

mindctrl avatar Mar 27 '24 12:03 mindctrl

cc @jasonbahl

theodesp avatar Mar 27 '24 13:03 theodesp

I'd recommend using register_graphql_field in the meantime to add settings like this to the schema.

jasonbahl avatar Mar 27 '24 14:03 jasonbahl

Hey @monzuralam thank you for the question. We are going to move this ticket into the discussions section and you can review @jasonbahl suggestion as well.

theodesp avatar May 29 '24 14:05 theodesp