Can I get the placement of the image between the date and the excerpt for my blog?
TITLE
DATE
IMAGE
EXCERPT
Read more —->
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
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?