name; } elseif (is_post_type_archive()) { $title = get_queried_object()->labels->name; } elseif (is_day()) { $title = sprintf(__('Daily Archives: %s', 'pinnacle'), get_the_date()); } elseif (is_month()) { $title = sprintf(__('Monthly Archives: %s', 'pinnacle'), get_the_date('F Y')); } elseif (is_year()) { $title = sprintf(__('Yearly Archives: %s', 'pinnacle'), get_the_date('Y')); } elseif (is_author()) { $title = sprintf(__('Author Archives: %s', 'pinnacle'), get_the_author()); } else { $title = single_cat_title("", false); } } elseif (is_search()) { $title = sprintf(__('Search Results for %s', 'pinnacle'), get_search_query()); } elseif (is_404()) { $title = __('Not Found', 'pinnacle'); } else { $title = get_the_title(); } return apply_filters('kadence_title', $title); } function kad_is_element_empty($element) { $element = trim($element); return empty($element) ? false : true; }