• Skip to main content
  • Skip to forum navigation

StudioPress

  • Shop for Themes
  • My StudioPress

Forum navigation

  • Home
  • General Genesis Discussions
  • StudioPress Themes
  • Genesis Blocks
    • Genesis Blocks
    • Genesis Custom Blocks
  • Retired Themes
  • FAQs
  • Forum Rules
  • Internationalization and Translations
  • Forum Bugs and Suggestions
  • Forum Log In

Are You Using The WordPress Block Editor?

Genesis now offers plugins that help you build better sites faster with the WordPress block editor (Gutenberg). Try the feature-rich free versions of each plugin for yourself!

Genesis Blocks Genesis Custom Blocks

Override html-tag for one specific page

Welcome!

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.

Log In
Register Lost Password

Community Forums › Forums › Internationalization and Translations › Override html-tag for one specific page

This topic is: resolved

Tagged: html, language definition

  • This topic has 3 replies, 2 voices, and was last updated 10 years, 8 months ago by David Chu.
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • November 9, 2014 at 8:04 am #130977
    webmonnik
    Member

    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

    November 9, 2014 at 12:42 pm #130997
    David Chu
    Participant

    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

    November 9, 2014 at 2:25 pm #131003
    webmonnik
    Member

    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

    November 9, 2014 at 3:01 pm #131006
    David Chu
    Participant

    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

  • Author
    Posts
Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.
Log In

CTA

Ready to get started? Create a site or shop for themes.

Create a site with WP EngineShop for Themes

Footer

StudioPress

© 2025 WPEngine, Inc.

Products
  • Create a Site with WP Engine
  • Shop for Themes
  • Theme Features
  • Get Started
  • Showcase
Company
  • Brand Assets
  • Terms of Service
  • Accptable Usse Policy
  • Privacy Policy
  • Refund Policy
  • Contact Us
Community
  • Find Developers
  • Forums
  • Facebook Group
  • #GenesisWP
  • Showcase
Resources
  • StudioPress Blog
  • Help & Documentation
  • FAQs
  • Code Snippets
  • Affiliates
Connect
  • StudioPress Live
  • StudioPress FM
  • Facebook
  • Twitter
  • Dribbble