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

    hi there,
    is it possible to either add this to the top of the page (as well as the bottom)?
    i’m using the grid layout.
    or move it from below the posts – to above the posts?
    thanks!
    Jason

    #1466023

    Hey Jason,

    Thank you for the inquiry.

    You can add this script to the functions.php file to move the pagination above the posts:

    function ava_custom_script_here()
    {
        ?>
        <script>
            (function ($)
            {
                function g()
                {
                    var pagination = $('.pagination-wrap.pagination-slider');
                    var contentSlider = $('.avia-content-slider-inner');
                    
                    if (pagination.length && contentSlider.length) {
                        pagination.insertBefore(contentSlider);
                    }
                }
    
                $(document).ready(function ()
                {
                    g();
                });
            })(jQuery);
        </script>
        <?php
    }
    add_action('wp_footer', 'ava_custom_script_here');
    

    Best regards,
    Ismael

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