Tagged: 

Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • #1020526

    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)

    #1021478

    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

    #1040988

    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”

    #1041566

    Hi,

    The script should not have affected the featured image. Can you give us a link to the actual blog post?

    Best regards,
    Ismael

    #1042292

    Link is below.
    This has a featured image… but it goes away/is not displayed even though I have my settings on big preview.

    #1042901

    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

    #1042916

    Login details supplied in private

    #1043491

    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

    #1043525

    Just checked it… try it again please.

    #1045188

    Hi,

    I adjusted the script a bit and added this code in the Quick CSS field:

    .big-preview a {
        overflow: visible;
    }
    

    Best regards,
    Ismael

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