Tagged: blog posts, grid layout, pagination
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
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