Community Forums › Forums › Archived Forums › General Discussion › Which Genesis Hooks do these Woo Hooks Match up With?
Tagged: genesis hooks
- This topic has 4 replies, 2 voices, and was last updated 8 years, 6 months ago by Paddy.
-
AuthorPosts
-
March 10, 2016 at 5:06 am #181106PaddyMember
Hi, while switching from a Woo theme to Genesis, i'm trying to replace the Woo hooks with Genesis ones. Some are quite obvious but others not as much for a beginner.
Here are a few which i'm not totally sure about and would appreciate some pointers. Thanks for any feedback.
#1
woo_main_before - Executed before the opening #main DIV tag.
genesis_before_content_sidebar_wrap - This hook executes immediately before the div block that wraps the content and the primary sidebar (outside the #content-sidebar-wrap div).#2
woo_footer_top - Executed at the top of the footer.php file.
woo_footer_before - Executed before the opening #footer DIV tag.
genesis_before_footer - This hook executes immediately before the footer, outside the #footer div.#3
woo_footer_inside - Executed at the top, inside the #footer DIV tag.
genesis_footer - This hook, by default, outputs the content of the footer, including the #footer div wrapper.#4
woo_header_inside() - Executed at the top, inside the #header DIV tag.
genesis_header - By default, this hook outputs the header code, including the title, description, and widget area (if necessary).#5
woo_top - Executed below the opening tag.
genesis_pre - This is the first hook to execute within Genesis. Think of any function hooked to it as being executed before any Genesis functions have loaded.#6
woo_post_inside_before - Executed at the top, inside each post’s DIV tag.
woo_post_inside_after - Executed at the bottom, inside each post’s DIV tag.
??March 10, 2016 at 5:44 pm #181173Brad DaltonParticipantMarch 10, 2016 at 9:32 pm #181186PaddyMemberHey Brad - thanks for the link. That's a great visual aid to complement the descriptively named Genesis hooks. The tricky part is trying to understand the Woo hooks and then line them up appropriately.
For example ... "woo_main_before - Executed before the opening #main DIV tag". It's not very intuitive which Genesis hook this should match up with. I don't mind doing the leg work to figure it out, and just need some pointers on where to start digging. "genesis_before_content_sidebar_wrap" is a guess based on the description.
Or, "woo_post_inside_before - Executed at the top, inside each post’s DIV tag". Would 'inside each post's DIV' be inside the Genesis loop, and hence this hook matches up with genesis_loop or genesis_before_entry perhaps?
March 11, 2016 at 6:24 am #181205Brad DaltonParticipantI think you'll need to test manually to find out. There's no comparison for these hooks which i've seen.
I assume you have custom functions for Woo which you want moved to Genesis?
March 19, 2016 at 5:11 pm #181886PaddyMember"I think you'll need to test manually to find out." - Sure. Do you know if it's best to echo some text at different points and then do a visual comparison or is there a more efficient way to do it.
"I assume you have custom functions for Woo which you want moved to Genesis?" - Yes. Appreciate any pointers if you have them. Thanks.
-
AuthorPosts
- The forum ‘General Discussion’ is closed to new topics and replies.