Hello Support,
I want to move the meta data (author, post date) to be directly above the main post content.
I want to do this on both the main blog page – and the individual post page.
So the “author” and “date” appears between the featured image and the post content.
I did a search, and attempted a couple of answers from previous support tickets – but one had no effect at all (???) and the other broke the site.
Thanks for your help,
Greg
Hey Greg,
Please post us your login credentials (in the “private data” field), so we can take a look at your backend.
Login credentials include:
Best regards,
Nikko
Hello Nikko,
OK – it is all placed in the private data. And you have permission to deactivate plugins.
But can’t you just tell me which file(s) to alter – and how to do so in the child theme?
~ Greg
Hi,
Try to add this code to functions.php:
function move_postmeta(){
?>
<script>
jQuery(window).load(function(){
jQuery( ".page .template-blog header.entry-content-header, .single-post .template-blog header.entry-content-header" ).each(function() {
jQuery( this ).find( ".post-meta-infos" ).insertBefore( jQuery(this).find('.big-preview') );
});
});
</script>
<?php
}
add_action('wp_footer', 'move_postmeta');
And add this code to Quick CSS (located in Enfold > General Styling):
.html_elegant-blog #top .post-entry .post-meta-infos {
float: none;
}
Let us know if it works.
Best regards,
Nikko
Hello Nikko,
Awesome – this worked perfectly! :-)
We can close this one,
Greg
Hi,
Glad we could help!
To know more about enfold features please check – http://kriesi.at/documentation/enfold/
Thank you for using Enfold :)
Best regards,
Vinay