Genesis adds in an archive title and description at the top of each archive page, depending on which type of archive page you use, there is a way to remove these from the mark up on the page.


Since Genesis 2.2.1 there is a genesis_do_posts_page_heading function which adds Archive and Description markup just before the articles on a blog and archive posts page. The original markup is in /genesis/lib/structure/archive.php



Below is a snippet of that code which adds the description and title markup, this is repeated to output the archive and description for all the different archive page types. What we need to do is reverse that action by removing it via the child theme.

View the code on Gist.

To remove the archive title and archive description blog page markup just remove the action below in your themes function.php file, depending on what type of archive page you are using you’ll need to remove that action from one of the list below…

remove_action( 'genesis_before_loop', 'genesis_do_posts_page_heading' );

To remove from the blog page template use…

remove_action( 'genesis_before_loop', 'genesis_do_blog_template_heading' );

To remove from a date based archive use…

remove_action( 'genesis_before_loop', 'genesis_do_date_archive_title' );

To remove from a custom post type based archive use…

remove_action( 'genesis_before_loop', 'genesis_do_cpt_archive_title_description' );

To remove from a author based archive use…

remove_action( 'genesis_before_loop', 'genesis_do_author_box_archive', 15 );
remove_action( 'genesis_before_loop', 'genesis_do_author_title_description', 15 );

To remove from a taxonomy based archive including categories and tags use…

remove_action( 'genesis_before_loop', 'genesis_do_taxonomy_title_description', 15 );


Leave a Reply