Hello there.
I wish to add a header into all my posts and pages like the one above:
<link rel="alternate" href="URL OF THE PAGE/POST" hreflang="pt-br" />
How can I do it? Would it be easier through child theme?
Thanks a lot.
Hello there.
I wish to add a header into all my posts and pages like the one above:
<link rel="alternate" href="URL OF THE PAGE/POST" hreflang="pt-br" />
How can I do it? Would it be easier through child theme?
Thanks a lot.
Hey @projuris,
We are confused as to what you’re trying to add because the code you posted is mixed up. You inserted in there URL OF THE PAGE/POST.
![]()
The Link tag is used to link to a resource and not a page.
If you wish to link to a resource like a CSS file, you need to follow one of the methods to add code to the head in the 3rd party article here https://kinsta.com/knowledgebase/add-code-wordpress-header-footer/
If you want to a link in the header, please follow the instruction to set up the navigation in our theme here https://theme.co/docs/how-to-set-up-navigation
If that doesn’t help, please clarify what you need exactly.
Thanks.
It was just an example. The third party code injection trough function.php solved my problem.
Thanks a lot!
You’re welcome!
We’re glad we were able to help you out.
This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.