• Home
  • Blog
  • Contact Us
  • Home
  • Blog
  • Contact Us

Add Blogroll To Genesis Dynamik

Last Updated: 24 October 2017 By Mike Haydon

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.

Filed Under: Website Design
Originally Posted: 24 August 2016

Comments

  1. Donna says

    25 August 2016 at 6:13 am

    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.

    Reply

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Recent Posts

  • Add Blogroll To Genesis Dynamik
  • What Is Search Engine Optimization?
  • Google Plus Business Cover Image Change
  • Firefox Bookmarklets To Boost Productivity
  • PBNs Are Dead – Nope They’ve Just Changed

How Can We Help You?

  • Website Design Service
  • Google Penalty Recovery Service
  • Search Engine Optimization Service

Categories

  • Online Marketing
  • SEO
  • Social Media
  • Website Design
  • Wordpress

At A Glance

  • Ranking
  • Website Design
  • WordPress
  • Social Media
  • Contact
  • Google Penalties
  • Earnings Disclosure
  • Privacy Policy

Contact Us

SEO Perth

68 Barnes St
Innaloo, WA 6018

+61 (08) 9279 0694

Contact Us Here

Copyright © 2025