If you use the “Directors’ Cut” Genesis Dynamik skin I developed for OMG, some of the pages might not display correctly, specifically the Category and Blogroll pages.
As Donna from www.pageonefirst.com pointed out to me recently, there is some need for this.
For a Blogroll page that looks like https://seoperth.net.au/blog/, go to Dynamik Custom -> Templates. Add a new template with a file name “home” (without the quotes). The Template Name can be anything, but I put “Blog Page”. Set it to WordPress Template like so:
Add the following code into the box as you can see:
<?php /* Template Name: Blog */ remove_action( 'genesis_entry_header', 'dc_post_title' ); add_action( 'genesis_entry_header', 'genesis_do_post_title' ); remove_action( 'genesis_entry_header', 'dc_new_content_sidebar_wrap', 15 ); remove_action( 'genesis_entry_header', 'dc_new_content_wrap', 15); remove_action( 'genesis_entry_content', 'page_spacer', 5 ); remove_action( 'genesis_entry_content', 'genesis_post_info', 5 ); add_action( 'genesis_entry_header', 'genesis_post_info', 12); remove_action( 'genesis_entry_footer', 'dc_new_content_wrap_close', 16 ); remove_action( 'genesis_entry_footer', 'genesis_get_sidebar', 17 ); add_action( 'genesis_after_loop', 'dc_new_content_wrap_close', 5); add_action( 'genesis_after_loop', 'genesis_get_sidebar', 10 ); remove_action( 'genesis_entry_footer', 'dc_new_content_sidebar_wrap_close', 18 ); add_action( 'genesis_after_loop', 'dc_new_content_sidebar_wrap_close', 15); add_action( 'genesis_loop', 'dc_category_heading', 9 ); function dc_category_heading() { $category = get_category( get_query_var('cat') ); echo '<div class="post-title-wrap"><div class="post-title-inner"><h1 class="entry-title" itemprop="headline">Articles</h1></div></div><div class="new-content-sidebar-wrap"><div class="new-content-wrap">'; } genesis(); ?>
This will give you a blogroll with the title “Articles”. If you want a different title, just change it in the <h1> on the long line, leaving all the rest of the code intact.
If you want to display categories of posts, add a new template with a file name “archive” (without the quotes). The Template Name can be anything, but I put “Category Archive”. Set it to WordPress Template.
Use the following code for that:
<?php /* Template Name: Archive Template */ remove_action( 'genesis_entry_header', 'dc_post_title' ); add_action( 'genesis_entry_header', 'genesis_do_post_title' ); remove_action( 'genesis_entry_header', 'dc_new_content_sidebar_wrap', 15 ); remove_action( 'genesis_entry_header', 'dc_new_content_wrap', 15); remove_action( 'genesis_entry_content', 'page_spacer', 5 ); remove_action( 'genesis_entry_content', 'genesis_post_info', 5 ); add_action( 'genesis_entry_header', 'genesis_post_info', 12); remove_action( 'genesis_entry_footer', 'dc_new_content_wrap_close', 16 ); remove_action( 'genesis_entry_footer', 'genesis_get_sidebar', 17 ); add_action( 'genesis_after_loop', 'dc_new_content_wrap_close', 5); add_action( 'genesis_after_loop', 'genesis_get_sidebar', 10 ); remove_action( 'genesis_entry_footer', 'dc_new_content_sidebar_wrap_close', 18 ); add_action( 'genesis_after_loop', 'dc_new_content_sidebar_wrap_close', 15); add_action( 'genesis_loop', 'dc_category_heading', 9 ); function dc_category_heading() { $category = get_category( get_query_var('cat') ); echo '<div class="post-title-wrap"><div class="post-title-inner"><h1 class="entry-title" itemprop="headline">' . $category->name . '</h1></div></div><div class="new-content-sidebar-wrap"><div class="new-content-wrap">'; } genesis(); ?>
I never use tags. If you do, check if they display correctly. If not, you may need to do some tweaking of the dc_category_heading() function.
Happy coding.
Donna says
Thanks Mike! This works perfectly and my articles page looks great. You are very skilled at coding, on top of being an extremely successful SEO Expert! Appreciate your help.