Hello,
Please add this code to the functions.php of the child theme:
if ( ! function_exists( 'woodmart_post_date' ) ) {
function woodmart_post_date( $args ) {
$has_title = get_the_title() != '';
$attr = '';
if ( ! $has_title && ! is_single() ) {
$url = get_the_permalink();
$attr = 'window.location=\'' . $url . '\';';
}
$classes = '';
$classes .= ' ' . $args['style'];
$classes .= woodmart_get_old_classes( ' woodmart-post-date' );
?>
<div class="post-date wd-post-date<?php echo esc_attr( $classes ); ?>" onclick="<?php echo esc_attr( $attr ); ?>">
<span class="post-date-day">
<?php echo get_the_time( 'd' ); ?>
</span>
<span class="post-date-month">
<?php echo get_the_time( 'M Y' ); ?>
</span>
</div>
<?php
}
}
You will get the result like this: https://gyazo.com/a0dbde93c3f78290dafccfd05fc8f2fe
Best Regards