In this screencast I share how I go about doing changes in Genesis child themes, primarily changes like removing elements and repositioning them.
Make sure to select HD quality by clicking on the gear icon and watch in full screen.
1) Refer to Genesis Visual Hook Guide site or use the Genesis Visual Hook Guide plugin to understand which hook it is that you want to remove elements from or add stuff to.
2) Refer to wp-content/themes/genesis/lib/structure/post.php to see the code behind how various existing elements are laid out. Copy the add_action line of interest, put it in child theme’s functions.php and change ‘add’ to ‘remove’ to remove it. To reposition, change the hook location and adjust priority if necessary.
3) 10 is the default priority. Use lower priority when you want things to become light and float to the top. When you want things to go below, use higher priority.
4) Here’s the code shown in the video to remove Post info, Post meta and move title from entry header to entry content location just above the excerpt/content:
remove_action( 'genesis_entry_header', 'genesis_post_info', 12 );
remove_action( 'genesis_entry_footer', 'genesis_post_meta' );
remove_action( 'genesis_entry_header', 'genesis_do_post_title' );
add_action( 'genesis_entry_content', 'genesis_do_post_title', 9 );
Awesome explanation and walkthrough. Definitely helpful for us Genesis beginners.
Fabulous video Sridhar.
This will be a great resource for the Genesis community.
The Genesis hooks are something that most of us struggle with and your video has been a great help.
Wow. This was super-helpful. Thanks!
this is such a wonderful video. Thank you so much for all you give to the Genesis community. I am now ready to dive and begin my own experimentation.
Thank you so much for putting this together! I never knew about the structure/post.php file or priorities… I was doing things the hard way, with lots of trial and error. Now I can do things so much faster and easier!
This video tutorial helped me immensely! I’m going to check out your other videos.
This is a great video. This really helps to understand how to use hooks. Thanks for making this. Is there one or could you do one on filters?