wpengine / faustjs

Faust.js™ - The Headless WordPress Framework
https://faustjs.org
Other
1.44k stars 131 forks source link

No Index tag on SEO Components #1858

Closed monzuralam closed 4 months ago

monzuralam commented 7 months ago

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;

theodesp commented 7 months ago

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

monzuralam commented 6 months ago

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.

theodesp commented 6 months ago

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

mindctrl commented 6 months ago

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.

theodesp commented 6 months ago

cc @jasonbahl

jasonbahl commented 6 months ago

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

theodesp commented 4 months ago

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.