Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

No Index tag on SEO Components #1893

Unanswered
monzuralam asked this question in Q&A
Discussion options

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;

You must be logged in to vote

Replies: 7 comments

Comment options

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

You must be logged in to vote
0 replies
Comment options

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.

You must be logged in to vote
0 replies
Comment options

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

You must be logged in to vote
0 replies
Comment options

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.

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

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

You must be logged in to vote
0 replies
Comment options

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.

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
type: feature New functionality being added
Converted from issue

This discussion was converted from issue #1858 on May 29, 2024 14:28.

AltStyle によって変換されたページ (->オリジナル) /