Skip to content

Instantly share code, notes, and snippets.

@joshuadavidnelson
Created October 16, 2014 06:39
Show Gist options
  • Save joshuadavidnelson/2a9a28b9e4b5b1acfb40 to your computer and use it in GitHub Desktop.
Save joshuadavidnelson/2a9a28b9e4b5b1acfb40 to your computer and use it in GitHub Desktop.
Place archive title and description above the content wrap in Genesis theme
<?php
// Move page title on taxonomy pages
add_action( 'genesis_meta', 'jdn_move_category_title' );
function jdn_move_category_title() {
if( is_archive() ) {
// Remove the default location for the breadcrumbs and taxonomy title-description
remove_action( 'genesis_before_loop', 'genesis_do_taxonomy_title_description', 15 );
remove_action( 'genesis_before_loop', 'genesis_do_breadcrumbs' );
// Place the title-descript above the wrap
add_action( 'genesis_before_content_sidebar_wrap', 'genesis_do_taxonomy_title_description' );
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment