Support » Plugin: Head, Footer and Post Injections » How to generate hreflang-tags automatically for each subfolder?

  • Resolved danielcalifornia



    I have two websites with the exact same content:

    1x for Germany with a german TLD (.de)
    1x for Switzerland with a swiss TLD (.ch)

    Now I wann use “Head, Footer and Post Injections” to add the appropriate hreflangs AUTOMATICALLY for each subfolder.

    For example:

    <link rel=”alternate” hreflang=”de-de” href=”https://example.DE/subfolder1/”&gt;
    <link rel=”alternate” hreflang=”de-ch” href=”https://example.CH/subfolder1/”&gt;

    Does anyone know how the code must look like, so that “Head, Footer and Post Injections” generates these tags automatically for each subfolder and puts them into the head?

    I appreciate your help!

    Thank you,

Viewing 1 replies (of 1 total)
  • Plugin Author Stefano Lissa


    Hi, this is actually not a seo plugin, you should look to plugins which manage those kind of seo topics. I don’t know if yoast or all in one seo pack do that.


Viewing 1 replies (of 1 total)
  • You must be logged in to reply to this topic.