function wpschool_last_updated_date( $content ) {
$custom_content = '';
$u_time = get_the_time('U');
$u_modified_time = get_the_modified_time('U');
if ($u_modified_time >= $u_time + 86400) {
$updated_date = get_the_modified_time('j F Y');
$updated_time = get_the_modified_time('H:i');
}
$custom_content .= $content;
return $custom_content;
$custom_content .= '<p class="last-updated">Последнее обновление - '. $updated_date . ' в '. $updated_time .'</p>';
}
add_filter( 'the_content', 'wpschool_last_updated_date' );
@media (max-width: 768px) {
стили для вьюпортов меньше или равных 768px
}
<meta name="viewport" content="width=device-width, initial-scale=1">