Tagged: blog posts
Hello,
I’m trying to move the post meta author, date to the top of blog posts (under the title). I’ve searched the forum and implemented the solutions (here: https://kriesi.at/support/topic/move-date-and-author-meta-to-under-title/?login_error) and yet it’s still not working.
Could you perhaps let me know what I’m doing wrong? (Info in private content)
Hey lucky19,
Thank you for using Enfold.
The site is using a different blog style. Use this code in the functions.php file instead.
add_action('wp_footer', 'ava_custom_script_move_blog_info');
function ava_custom_script_move_blog_info(){
?>
<script type="text/javascript">
const entry = document.querySelector(".single .entry-content-wrapper");
const meta = document.querySelector(".single .post-meta-infos");
const title = document.querySelector(".single .av-heading-wrapper");
title.parentNode.insertBefore(meta, title.nextSibling);
</script>
<?php
}
Best regards,
Ismael
Hi. I used this method, and when I refreshed my blog post, the featured image went away. I have my blog layout setting on “Single post with big preview image”
Hi,
The script should not have affected the featured image. Can you give us a link to the actual blog post?
Best regards,
Ismael
Link is below.
This has a featured image… but it goes away/is not displayed even though I have my settings on big preview.
Hi,
Thanks for the info. The image tag is nowhere to be found. Is it displaying properly when you remove the code? Please post the login details in the private field.
Best regards,
Ismael
Login details supplied in private
Hi,
That login info is invalid. Please check it carefully. And you should open a new thread because OP will be able to see your credentials in the private field.
Best regards,
Ismael
Just checked it… try it again please.