• 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

Enable HTML5 markup snippet change

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 › Archived Forums › General Discussion › Enable HTML5 markup snippet change

This topic is: not resolved

Tagged: html5

  • This topic has 5 replies, 2 voices, and was last updated 11 years, 10 months ago by David Chu.
Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • March 31, 2014 at 6:25 am #97596
    RobCubbon
    Member

    Hey,

    I converted my sites to HTML5 a while back last year when Genesis 2.0 came out (was that last year? I'm guessing)

    I did so with this code in the functions.php

    
    // Enable HTML5 markup
    add_theme_support( 'html5' );
    

    Now, I notice it has changed: https://gist.github.com/studiopress/6173486#file-functions-php to :

    
    //* Add HTML5 markup structure
    add_theme_support( 'html5', array( 'search-form', 'comment-form', 'comment-list' ) );
    

    Should I change it? What's the benefit of the change?

    I would be grateful for any help with this.


    Rob Cubbon

    http://robcubbon.com
    March 31, 2014 at 9:47 am #97683
    David Chu
    Participant

    Hi Rob!
    An interesting question! I had not seen that snippet. I'm not sure of the answer, but I did some digging. Current Genesis core has it the first (non-parm) way.

    Yet if you go to the Codex, current 3.8.1 code tells you to do it the second way in its comments.
    http://codex.wordpress.org/Function_Reference/add_theme_support#HTML5
    ... and below that, you can find a source link that shows the bare code.

    My guess would be that the Genesis code may be eventually updated to do it the new official way. It seems to be working fine the old way for now. Maybe somebody else here knows, or I wonder if you might want to ask some of the super techie Genesis folks on Twitter, like Gary or Nathan Rice.

    Cheers, Dave


    Dave Chu · Custom WordPress Developer – likes collaborating with Designers

    March 31, 2014 at 3:12 pm #97765
    RobCubbon
    Member

    Hey Dave, nice to talk to you again. I've tweeted it out to Nathan Rice (I hope that's OK).


    Rob Cubbon

    March 31, 2014 at 3:22 pm #97771
    David Chu
    Participant

    Rob,
    Always good to see you! If you have a sec, let me know what you find out. (on Twitter is fine)

    🙂


    Dave Chu · Custom WordPress Developer – likes collaborating with Designers

    March 31, 2014 at 6:10 pm #97814
    RobCubbon
    Member

    Dave, Nathan just tweeted me "use the parameters. It's how WP 3.9 will expect it to be used, though it won't break if you just use the 'html5' part."

    @robcubbon use the parameters. It's how WP 3.9 will expect it to be used, though it won't break if you just use the 'html5' part.

    — Nathan Rice ?’? (@nathanrice) March 31, 2014

    I guess I'd better change it on my sites then 🙂


    Rob Cubbon

    March 31, 2014 at 6:34 pm #97828
    David Chu
    Participant

    Rob,
    Thanks for the head's up! My psychic powers must have been on today.

    Dave


    Dave Chu · Custom WordPress Developer – likes collaborating with Designers

  • Author
    Posts
Viewing 6 posts - 1 through 6 (of 6 total)
  • The forum ‘General Discussion’ is closed to new topics and replies.

CTA

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

Create a site with WP EngineShop for Themes

Footer

StudioPress

© 2026 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