Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #1349330

    The post slider is located under UPCOMING EVENTS & ACTIVITIES. I Is is possible to move the date and time above the post titles? The date and time is created used the Excerpt.

    Live site – http://balrajt9.sg-host.com/

    Mockup – https://ibb.co/bj4vmYm

    #1349351

    Hey navindesigns,

    Thanks for giving us admin access.
    I have added this code in your child theme’s functions.php file:

    function move_post_meta(){
    ?>
    <script>
    (function() {
    	var gridposts = document.querySelectorAll('.avia-content-slider .slide-entry');
    
    	gridposts.forEach(function(el) {
    		var header = el.querySelector('.entry-content-header');
    		var postMeta = el.querySelector('.eventDateTime');
    		header.insertBefore(postMeta, header.childNodes[0]);
    	});
    })();
    </script>
    <?php
    }
    add_action('wp_footer', 'move_post_meta');

    Please review your site.

    Best regards,
    Nikko

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