Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #1361954

    Hello,
    I have used this code to move author and date at the beginning of the article

    But it is working in some cases and others not. Please see in private content
    Do you have another solution, possibly without using jquery that can give unpredictable results?
    Maybe with some wp_dequeue_script and wp_enqueue_scripts?

    Thank you
    Mauro

    #1361966

    Hi profumopuntoit,

    Can you try to replace this code with this one:

    function move_postmeta(){
    ?>
    <script>
    	jQuery(window).load(function(){
    		jQuery( ".single.single-post .post-meta-infos" ).insertBefore('.entry-content' );
    	}());
    </script>
    <?php
    }
    add_action('wp_footer', 'move_postmeta');

    Best regards,
    Nikko

    #1361979

    It’s Ok
    Thank you Nikko

    #1361983

    Hi profumopuntoit,

    We’re glad that we could help you :)
    Thanks for using Enfold and have a great day!

    Best regards,
    Nikko

Viewing 4 posts - 1 through 4 (of 4 total)
  • The topic ‘Move author and date at the beginning of the article’ is closed to new replies.