Genesis 2 and HTML5

Community Forums Forums General Discussion Genesis 2 and HTML5

This topic is: not resolved

Tagged: ,

This topic contains 5 replies, has 4 voices, and was last updated by  jimdavis46 1 year, 4 months ago.

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #41587

    jimdavis46
    Participant
    Post count: 3

    The introduction information for Genesis 2 says “With a single line of code in a child theme, Genesis will now output HTML5 markup in place of the old XHTML tags.” I have searched the site and can’t seem to find this “single line of code” to add to my child theme. Please provide a link to this code.

    Thanks

    #41590

    Bill Murray
    Participant
    Post count: 575

    Here you go:

    add_theme_support( ‘genesis-html5′ );


    Web: https://wpperform.com or Twitter: @wpperform

    We do managed WordPress hosting.

    #41595

    jimdavis46
    Participant
    Post count: 3

    Thanks! Works great.  Screwed up the header in the Minimum Child Theme, but that can be fixed.

    Jim

    #44486

    kriskl
    Participant
    Post count: 37

    Hi, sorry a follow up,

    I am using enterprise theme,

    to enable html5 with genesis2.0 where do I add this code?

    add_theme_support( ‘genesis-html5′ );

     

    thanks

    kris

    #44498

    mmjaeger
    Participant
    Post count: 65

    you add it to your child’s theme functions.php file

    #44505

    jimdavis46
    Participant
    Post count: 3

    I added this to the child theme functions.php file:

    /** Add HTML5 Support **/
    add_theme_support( ‘genesis-html5′ );

    Note that the single quotation marks are not curly quotes as used by many word processors. They are straight single quotes used by most simple text editors.

    Make a backup copy of your functions.php file before you make any modifications.

Viewing 6 posts - 1 through 6 (of 6 total)

You must be logged in to reply to this topic.