Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
Replace the primary sidebar with the archive content with Genesis
<?php
// Template Name: Archive
/**
* Replace the primary sidebar with the archive content with Genesis
*
* @author Reasons to Use Genesis
* @link http://reasonstousegenesis.com/genesis-page-archive-content/
*/
remove_action( 'genesis_sidebar', 'genesis_do_sidebar' );
add_action( 'genesis_sidebar', 'rtug_page_archive_content' );
function rtug_page_archive_content() {
$heading = ( genesis_a11y( 'headings' ) ? 'h2' : 'h4' );
genesis_sitemap( $heading );
}
genesis();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment