Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #426722

    hiya, any easy way to swap the position of comments and date in the blog archives? ie. date first then separator then comments number?

    If not, what template do i need to adjust to make this change?

    Thanks amigos,

    Bodhi

    #426948

    Hey bodhimcgee!

    Could you provide us with a link to the site in question so that we can take a closer look please?

    Best regards,
    Rikard

    #427161
    This reply has been marked as private.
    #428104

    Hey!

    Add this to the functions.php file:

    add_action('wp_footer', 'ava_custom_script_1');
    function ava_custom_script_1(){
    ?>
    <script>
    (function($){
    	var meta = $('.slide-meta');
    	$(meta).each(function() {
    		var comment = $(this).find('.slide-meta-del').prev().detach();
    		var date = $(this).find('.slide-meta-del').next().detach();
    		$(comment).appendTo(this);
    		$(date).prependTo(this);
    	});
    
    })(jQuery);
    </script>
    <?php
    }

    Regards,
    Ismael

    #428304
    This reply has been marked as private.
    #429047

    Hey!

    It’s working fine on my end. Make sure to add it to the end of your functions.php file.

    Consider using a child theme if your not already, http://kriesi.at/documentation/enfold/downloads/, and then add it to the child theme functions.php file.

    Best regards,
    Elliott

    #429239
    This reply has been marked as private.
    #429538

    Hey!

    Great, glad we could help :)

    Cheers!
    Rikard

Viewing 8 posts - 1 through 8 (of 8 total)
  • The topic ‘Swap position of comments and date in blog archives’ is closed to new replies.