Skip to content
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

The qTranslate-Slug overrides the qTranslate-X hreflang generated code #143

Open
HowToSnippets opened this issue Jul 19, 2017 · 0 comments

Comments

@HowToSnippets
Copy link

HowToSnippets commented Jul 19, 2017

I wanted for hreflang to use language code that is stored inside "Locale at front-end" field located inside individual Language qTranslate-X Settings page, but couldn't make it to work.

It turns out this is due to the qtranslate-slug removing the ''wp_head'' action of qTranslate-X and replacing it with it's own which is ignoring the "Locale at front-end" field. I think this is due to the #25 issue.

If I comment out the code in qTranslate-Slug that replaces ''wp_head'' action of qTranslate-X with its own, the "Locale at front-end" field works. At the same time, the URL slugs also get converted, so I'm not sure what does #25 solve or if it is even needed anymore (at least with the current version of qTranslate-X).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant