Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #1012845

    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

    #1013478

    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

    #1014114
    This reply has been marked as private.
    #1014196

    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

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.