Hi,
Is there a function that can change the ordering of blog posts so that the order shows,
1. featured image
2. the title
3 the date
could you advise how to do this?
thanks
Andy
Hey brandaspect,
Thank you for using Enfold.
Which blog layout is it set to? Please provide the link to the actual blog page so that we can inspect it.
Best regards,
Ismael
Hi,
Thanks for the update.
You can use this script in the functions.php file to move the post elements.
add_action('wp_footer', 'ava_custom_move_post_elements');
function ava_custom_move_post_elements(){
?>
<script type="text/javascript">
(function($) {
$('.post-entry').each(function(index) {
var title = $(this).find('.post-title');
var image = $(this).find('.big-preview');
var info = $(this).find('.post-meta-infos');
image.insertBefore(title);
info.insertAfter(title);
});
})(jQuery);
</script>
<?php
}
Best regards,
Ismael