Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #1347148

    Hi,
    For now the date on each blogpost is shown below the content and the related posts – can we somehow move this to the top?

    Best
    M

    #1347190

    is there a link to the concerning page? Because the style of blog is set in enfold on different ways – f.e. if you choose elegant style or business style etc. – or layout grid etc.

    #1347236

    Hi,

    Thank you for the inquiry.

    You can use this code in the functions.php file to move the date after the header, or before the post content.

    function ava_acustom_script() { ?>
        <script> 
            (function($) {
                // move post meta info below header
                $(document).ready(function() {
                    var is_single = $("body").is(".single-post");
    
                    if( is_single ) {
                        $(".post-meta-infos").insertAfter(".entry-content-header");
                    }
                });
            })(jQuery);
        </script>
        <?php
    }
    add_action('wp_footer', 'ava_acustom_script');
    

    Best regards,
    Ismael

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