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

    Hi,
    I made a page with “article” block from the layout builder.
    The post grid shows post title with date underneath. I would like the date to be displayed above the title. Is it possible? Thanks

    #1343992

    Hey marxsvjetlana64,
    Try adding this code to the end of your functions.php file in Appearance ▸ Editor:

    function custom_script() { ?>
        <script>
    (function($) {
      $( '.slide-entry' ).each(function() {
      $( this ).find( 'time.slide-meta-time' ).insertBefore( $(this).find('.slide-entry-title') );
      });
    })(jQuery);
    </script>
        <?php
    }
    add_action('wp_footer', 'custom_script');

    If this doesn’t help please link to the page so we can examine the elements.

    Best regards,
    Mike

    #1344013

    Worked like a charm. Thanks a lot!

    #1344020

    Hi,

    Great, I’m glad that Mike could help you out. Please let us know if you should need any further help on the topic or if we can close it.

    Best regards,
    Rikard

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