-
Notifications
You must be signed in to change notification settings - Fork 151
No Index tag on SEO Components #1893
-
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
;
Beta Was this translation helpful? Give feedback.
All reactions
Replies: 7 comments
-
Hey @monzuralam. Is there a particular issue you are facing here? Thanks
Beta Was this translation helpful? Give feedback.
All reactions
-
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.
Beta Was this translation helpful? Give feedback.
All reactions
-
Hey @monzuralam . Thanks for the report. Would you be able to submit a PR about it?
Beta Was this translation helpful? Give feedback.
All reactions
-
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.
Beta Was this translation helpful? Give feedback.
All reactions
-
👍 1
-
cc @jasonbahl
Beta Was this translation helpful? Give feedback.
All reactions
-
I'd recommend using register_graphql_field
in the meantime to add settings like this to the schema.
Beta Was this translation helpful? Give feedback.
All reactions
-
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.
Beta Was this translation helpful? Give feedback.