/*
Theme Name: Flatsome Child
Description: This is a child theme for Flatsome Theme
Author: UX Themes
Template: flatsome
Version: 3.0
*/

/*************** ADD CUSTOM CSS HERE.   ***************/


@media only screen and (max-width: 48em) {
/*************** ADD MOBILE ONLY CSS HERE  ***************/

<?php
// Xóa chữ "Lưu trữ:" trên tất cả archive (category, tag, custom taxonomy, date, author, search)
add_filter( 'get_the_archive_title', function( $title ) {

    if ( is_category() || is_tag() || is_tax() ) {
        $title = single_term_title( '', false );
    } elseif ( is_author() ) {
        $title = get_the_author();
    } elseif ( is_post_type_archive() ) {
        $title = post_type_archive_title( '', false );
    } elseif ( is_date() ) {
        if ( is_day() ) {
            $title = get_the_date();
        } elseif ( is_month() ) {
            $title = get_the_date( 'F Y' );
        } elseif ( is_year() ) {
            $title = get_the_date( 'Y' );
        }
    } elseif ( is_search() ) {
        $title = 'Kết quả tìm kiếm cho: ' . get_search_query();
    }

    return $title;

});
