Tagged: ajax, pagination
Hello,
I am still having a problem with the ajax portfolio and I appreciate that on the following thread you mentioned there’s not much you can do.
https://kriesi.at/support/topic/ajax-portfolio-3/
However, is there at least a way to put the pagination at the top of the portfolio so that at least it shows there is more than one page of entries? At the moment the portfolio cuts off at the bottom and overlays the pagination.
Thanks
Andrew
Hi awilson3rd!
What is the url for the site that is having the issue with the ajax portfolios?
Best regards,
Devin
Hey!
Thank you for using Enfold.
If you want to add a pagination on top of the portfolio grid element, edit config-templatebuilder > avia-shortcodes > portfolio.php. Find this code on line 373:
$output .= "<div class='{$class} grid-sort-container isotope {$style_class}-container with-{$contents}-container grid-total-{$total} grid-col-{$columns} grid-links-{$linking}' data-portfolio-id='{$container_id}'>";
Replace it with this:
//append pagination
if($paginate == "yes" && $avia_pagination = avia_pagination($this->entries->max_num_pages, 'nav')) $output .= "<div class='pagination-wrap pagination-{$post_type}'>{$avia_pagination}</div>";
$output .= "<div class='{$class} grid-sort-container isotope {$style_class}-container with-{$contents}-container grid-total-{$total} grid-col-{$columns} grid-links-{$linking}' data-portfolio-id='{$container_id}'>";
Cheers!
Ismael
Thanks for the reply Ismael,
I guess there is no way to do this in the quick css option?
Andrew
In this case no but if you are using a child theme that change can be made so that it stays intact with theme updates.
Otherwise you could keep a copy locally and after each theme update re-upload the file with the location change.