Hi,
I made a page with “article” block from the layout builder.
The post grid shows post title with date underneath. I would like the date to be displayed above the title. Is it possible? Thanks
Hey marxsvjetlana64,
Try adding this code to the end of your functions.php file in Appearance ▸ Editor:
function custom_script() { ?>
<script>
(function($) {
$( '.slide-entry' ).each(function() {
$( this ).find( 'time.slide-meta-time' ).insertBefore( $(this).find('.slide-entry-title') );
});
})(jQuery);
</script>
<?php
}
add_action('wp_footer', 'custom_script');
If this doesn’t help please link to the page so we can examine the elements.
Best regards,
Mike
Worked like a charm. Thanks a lot!