function kkthemes_homepage_setup_document() { beans_add_smart_action('beans_header_after_markup', 'kkthemes_site_title_tag'); beans_add_smart_action('beans_content_after_markup', 'kkthemes_homepage_contents'); kkthemes_post_view(true); //change this to manually output post loop when more post types are there. beans_add_filter('beans_loop_query_args[_main]', 'kkthemes_theme_home_query_args'); //remove pagination beans_remove_action('beans_posts_pagination'); }
function kkthemes_index_setup_document() { if (is_main_archive()) { // Remove breadcrumb if this is main archive (accessible from main menu) // Other archives like Tags archive, author archive, month archive etc will continue to have breadcumb beans_remove_action('beans_breadcrumb'); //Add a large Title panel in these archive pages beans_add_smart_action('beans_header_after_markup', 'kkthemes_archive_title'); } kkthemes_post_view(); // Posts pagination beans_modify_action_hook('beans_posts_pagination', 'beans_content_after_markup'); }