I’ve recently released a Genesis child theme, , that is available completely for free in the Designers Area on this website. So, if you haven’t seen it yet, go ahead and read more about it here. It’s a very simple looking theme, but it includes some interesting non-standard features and solutions that you may have never seen in other Genesis child themes. If you’re a developer, looking into the source code must be the first thing you do when you find something new. If you had a chance to check the code, but still want to learn more about how it was done, let me deconstruct the child theme’s code for you. 1. Custom header with a gravatar As you may have noticed, the Journal theme doesn’t have a typical header. There is a user gravatar displayed right next to the site title and the “Menu” button on the right side. This is the code that is responsible for that customization: //* Custom header add_action( 'genesis_site_title', 'journal_header', 0 ); function journal_header(){ $gravatar = get_avatar( get_option( 'admin_email' ), 100 ); if( $gravatar ) echo '' . $gravatar . ''; if( is_active_sidebar( 'sidebar' ) ) echo '
Share This