Tagged: ,

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

    Can I get the placement of the image between the date and the excerpt for my blog?

    TITLE
    DATE
    IMAGE
    EXCERPT
    Read more —->

    #653277

    Hi KK!

    Thank you for using Enfold.

    Please add this in the functions.php file:

    // custom script
    add_action( 'wp_footer', 'ava_custom_script' );
    function ava_custom_script() {
    	?>
    	<script type="text/javascript">
    	(function($) {
    		   	function a() {
    		$('.template-blog .post-entry').each( function() {
    			var image = $(this).find('.big-preview.single-big'),
    				excerpt =  $(this).find('.entry-content');
    
    				image.insertBefore(excerpt);
    		});
       	}
    
       	a();
    	})(jQuery);
    	</script>
    	<?php
    }

    UPDATE: We modified the code above.

    Best regards,
    Ismael

    #653466

    Thanks
    I inserted the code into the theme functions in my chold theme and refreshed but still see the image as the first element and everything else below it/
    Maybe I have conflicting css somewhere?

    #654600

    Hi,

    I can’t find the script anywhere on the page. Are you sure that you added it correctly? Make sure that the function name (ava_custom_script) is not the same as the existing function in the file.

    Best regards,
    Ismael

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