Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #426220

    Currently the pages corresponding with the slugs of my custom post types display their respective post grids. I have not seen a theme do this before, and it’s really great, but I am unsure how to replace the ‘Archive’ text in the header? Preferably with something I can choose exactly, though at least with just the default name of the post type.

    http://note.io/1IwFcYB

    #426714

    Hey Rogier!

    Try adding this to the bottom of your functions.php file.

    add_filter( 'avf_which_archive_output', 'enfold_customization_archive_output', 10, 1 );
    function enfold_customization_archive_output( $output ) {
    	if ( get_post_type() == 'article' && is_archive() ) { $output = 'Testing testing 1, 2, 3'; }
    	return $output;
    }

    Cheers!
    Elliott

    #430543

    Thanks Elliott, this works.

    How can I expand this code to include the Video and Audio ‘Archives’ ?

    #431278

    Nevermind, figured it out.

Viewing 4 posts - 1 through 4 (of 4 total)
  • The topic ‘Replace 'Archives' on custom post type grid’ is closed to new replies.