Problem: The client was unsure if WPML inserts Hreflang tags directly into the raw HTML or via JavaScript, as some tags seemed to only appear after rendering when using crawling software. Solution: We insert Hreflang tags directly into the HTML using the
wp_head
hook from WordPress.
If this solution does not apply to your situation because it might be outdated or not relevant to your case, we recommend opening a new support ticket. We also highly recommend checking related known issues, verifying the version of the permanent fix, and confirming that you have installed the latest versions of themes and plugins. If further assistance is needed, please contact us in the WPML support forum.