-
Notifications
You must be signed in to change notification settings - Fork 110
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Remove hreflang #1302
Comments
This has been requested in #1039 but it's a wider topic related to #668 so it's still on hold. The language_attributes, is meant for another usage so this won't be possible with that filter. |
Any other way to remove it?
…On Wed, Mar 29, 2023, 3:17 AM Herr Vigg ***@***.***> wrote:
This has been requested in #1039
<#1039> but it's a wider
topic related to #668
<#668> so it's still on
hold.
The language_attributes
<https://developer.wordpress.org/reference/functions/language_attributes/>,
is meant for another usage so this won't be possible with that filter.
—
Reply to this email directly, view it on GitHub
<#1302 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/APXSF33VFL7CNDQS5FWAJT3W6NKGLANCNFSM6AAAAAAWKIHGIA>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
The output happens in: qtranslate-xt/src/frontend.php Line 58 in 4e32d61
So you can change that locally in your website repo as a workaround. But why do you want to remove this? If your website supports these languages you should tell the SEO where to find the alternative languages. |
It's for one of my clients so I have to add what they ask. They said it's temporary. |
If you want a quick and easy fix, add simply a qtranslate-xt/src/frontend.php Line 42 in 4e32d61 I understand this is not ideal but I prefer to come up with a proper fix and not have a filter that changes. |
How can we remove hreflang in head?
I tried
function remove_hreflang_tags() { remove_action( 'wp_head', 'language_attributes' ); } add_action( 'init', 'remove_hreflang_tags' );
but that didn't do anything.
The text was updated successfully, but these errors were encountered: