Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

I'm trying to html5ize a Genesis child theme. So far I've figured out how to replace the Doctype via hook but am having trouble figuring out how i can change the divs to sections and articles without touching the core files.

Can anyone point me in the right direction?

share|improve this question

migrated from stackoverflow.com May 24 '11 at 22:50

This question came from our site for professional and enthusiast programmers.

add comment

1 Answer 1

up vote 1 down vote accepted

You could create all your own templates in a child theme but the core engine does contain the HTML tags and ids. For me this is the problem with Theme Frameworks (Unless your willing to totally commit to them).

The code quality is outstanding but it's just too much work to roll things your own way. Just to remove the the genesis and studio press links in the footer you have to write a function remove 2 filters and add an action.

To replace all the divs with your HTML5 tags your going to have to have to write your own functions for

genesis_site_title()

genesis_before_content_sidebar_wrap()

genesis_after_content_sidebar_wrap()

genesis_before_content()

genesis_after_content()

genesis_sidebar()

genesis_before_sidebar_widget_area()

and others

Then do remove_actions and add_filter depending on the situation.

You can use the visual markup chart to help with your efforts.

enter image description here

share|improve this answer
    
Thanks for the reply and direction. I agree frameworks are a double edged sword, unfortunately this project must be built under genesis per the client :) –  Peter Gibbons May 26 '11 at 16:01
    
It's a very solid framework you just have to do it there way. A plugin that made all the changes would be a good idea. You should post something in there forums. –  Chris_O May 26 '11 at 16:52
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.