Reply To: Custom page header in taxonomy archive page

Home Forums Support Custom page header in taxonomy archive page Reply To: Custom page header in taxonomy archive page

Home Forums Support Custom page header in taxonomy archive page Reply To: Custom page header in taxonomy archive page

#243336
Marc

Alright, looks like I’m able to put the blog page header on the page archives now. Wooo!

Had to make some small changes to the code (for the archive):

add_filter( 'generate_get_blog_page_header','tu_global_page_header' );

function tu_global_page_header(){

    // Add your conditional to show the blog page header - is_home() is default
    if ( is_archive() )
        return true;

    // If the conditional isn't true, set it to false
    return false;
}

Going to try tinkering a bit more to make the blog page header more flexible (will pull archive descriptions when the page is an archive, etc.).

Ideally, something like this would exist in the GenerarePress settings (with a menu for each new custom post type the user creates). Obviously this would take quite a while to implement, just some food for thought.

Thanks for all your help here Tom!