Tagged: author's name, Blog, meta data, title
Hello,
I’ve successfully moved the author’s name below a blog’s title, above the blog’s content by following the steps outlined here:
https://kriesi.at/support/topic/move-meta-data-above-post-contact/#post-706053
And that works great on single blog pages, where the page is designed to only show 1 post. But how do I make this change also apply to the primary /blog page, the page that shows multiple blog posts on a single page?
Thanks!
Hey enfold4phil,
Just add another selector to the function from that thread, here is the code:
function move_postmeta(){
?>
<script>
jQuery(window).load(function(){
jQuery( ".page .template-blog header.entry-content-header, .single-post .template-blog header.entry-content-header, .blog .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');
If you need further assistance please let us know.
Best regards,
Victoria
That worked wonderfully!! THANK YOU!!!!!!!!!!!!!!!!!! :-D
You can close this topic now :)
Hi,
Glad Victoria helped you and thanks for using Enfold :)
Best regards,
Nikko