Hi,
For now the date on each blogpost is shown below the content and the related posts – can we somehow move this to the top?
Best
M
is there a link to the concerning page? Because the style of blog is set in enfold on different ways – f.e. if you choose elegant style or business style etc. – or layout grid etc.
Hi,
Thank you for the inquiry.
You can use this code in the functions.php file to move the date after the header, or before the post content.
function ava_acustom_script() { ?>
<script>
(function($) {
// move post meta info below header
$(document).ready(function() {
var is_single = $("body").is(".single-post");
if( is_single ) {
$(".post-meta-infos").insertAfter(".entry-content-header");
}
});
})(jQuery);
</script>
<?php
}
add_action('wp_footer', 'ava_acustom_script');
Best regards,
Ismael