Finally the wait is over! Genesis Framework 2.0 unveiled by StudioPress.
Crunchify.com finally moved to Genesis 2.0. Upgradation went perfectly smooth without glitch. I spent only 2 hrs modifying my Child theme, making it compatible with HTML5 Hooks and all set now.
I’m really impressed with the new look of Genesis Framework its simply stunning. Genesis already a super solid platform for WordPress; genesis 2.0 will bring in some incremental improvements. Read more about the official announcement here about the improvements and new features added into genesis framework 2.0 version.
The benefits of HTML5 markup are numerous:
- It makes your website future compatible
- It improves cross-browser compatibility
- It makes your site truly mobile-friendly
- It allows for extensible design and supports video and audio like no other markup language.
- It is cleaner and more efficient in terms of storage, API interaction, and other ways impact user experience.
How to enable HTML5 in Genesis Child Theme? Now Genesis Child Themes can utilize HTML5 features with a single line of code. Add below like to your child theme’s functions.php file.
//* Add HTML5 markup structure
add_theme_support( 'html5' );
With built-in support for schema.org, Genesis 2.0 allows you to enhance your site’s search engine optimization and results display through proper classification of the most important and defining elements on your pages.
Other must read:
- Genesis Framework: How to Disable Post Meta Info on Homepage
- Genesis Framework: How to Display Number of Comments in Comment Header Text
Here are Genesis 2.0 Hook Reference
The following is a list of hooks that have changed for Genesis 2.0. Please note upgrading to Genesis 2.0 will not break old hooks. In order to take advantage of HTML5 on an pre-2.0 theme, you’ll have to enable HTML5 on purpose.
Old (Pre_HTML) Hook ==> New (HTML) Hook
- genesis_before_post ==> genesis_before_entry
- genesis_before_post_title ==> genesis_entry_header
- genesis_post_title ==> genesis_entry_header
- genesis_after_post_title ==> genesis_entry_header
- genesis_before_post_content ==> genesis_entry_header
- genesis_post_content ==> genesis_entry_content
- genesis_after_post_content ==> genesis_entry_footer
- genesis_after_post ==> genesis_after_entry