This topic is: resolved
- This topic has 3 replies, 2 voices, and was last updated 9 years ago by .
Viewing 4 posts - 1 through 4 (of 4 total)
Viewing 4 posts - 1 through 4 (of 4 total)
- You must be logged in to reply to this topic.
These forums are for general discussion on WordPress and Genesis. Official support for StudioPress themes is offered exclusively at My StudioPress. Responses in this forum are not guaranteed. Please note that this forum will require a new username, separate from the one used for My.StudioPress.
Community Forums › Forums › Internationalization and Translations › Override html-tag for one specific page
Tagged: html, language definition
Hi,
I want to change the head-tag of one specific page. On this page (ID=42) i want to include lang="en" instead of nl-NL
so:
<html lang="nl-NL">
Should be:
<html lang="en">
What is the best way to do this?
Thank you very much for your help.
Regards, Rogier
Hallo Rogier,
An interesting question, so I looked into it. Beyond creating a new template that changes it manually, and using it for the page, you can try this idea.
I've played with Genesis functions that deal with all sorts of page attributes, but I don't believe Genesis has attribute code for the HTML element, so this is a straight WordPress method.
Cheers, Dave
Dave Chu · Custom WordPress Developer – likes collaborating with Designers
Wow Dave, this works perfect. I needed this for a site that is in Dutch, but has one page in English.
Thank you very much for your great solution.
Best regards, Rogier
Rogier,
You're welcome!
I enjoyed your brainteaser. In fact, I might be able to use it with some of my European colleagues!
Best, Dave
Dave Chu · Custom WordPress Developer – likes collaborating with Designers
© 2023 WPEngine, Inc.