- This topic has 2 replies, 2 voices, and was last updated 9 years, 1 month ago by .
- The forum ‘General Discussion’ is closed to new topics and replies.
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.
I'm converting my website from xhtml to html5.
What are the aspects of the website I need to change? So far I'm aware of the following:
add_theme_support( 'html5' );to functions.php
What else do I need to change? Is there anything else to change in functions.php, if so, is there a comparison table?
Main thing to understand with the change from XHTML to HTML5 is they changed the markup outputted by WP and Genesis.
You will want to do activate HTML5, yes.
CSS, you will also want to convert your CSS from the old markup structure to the HTML5 markup.
You will also want to check this table for the markup comparison:
You may find other tools to use under the Genesis Documentation Header:
You asked about other functions.php changes, only if the name of the Genesis Hook changed in the transition for XHTML to HTML5. Which I believe you can check here:
Thank-you Jason. That makes perfect sense!
© 2023 WPEngine, Inc.