I am getting this error message on the home page, eg on the advertising portfolio and on two others. All of these categories have portolio pages assigned to them:
Warning: Division by zero in /var/sites/t/our.url/public_html/wp-content/themes/kathy/template-parts/portfolio-listing-loop.php on line 68
I thought it was because these were imported from your xml file but it appears also in a newly created category.
Could you help.
UPDATE: Actually I think I have resolved this by deleting all the image placeholders left over from the importing.
It seems the placeholder images were not completely imported so it triggered the issue (bug). If you uploaded your own images to replace the placeholders, it should be fine.
In case you would like to fix the bug manually, you can open the "/template-parts/portfolio-listing-loop.php" file and find this code:
I am getting this error message on the home page, eg on the advertising portfolio and on two others. All of these categories have portolio pages assigned to them:
Warning: Division by zero in /var/sites/t/our.url/public_html/wp-content/themes/kathy/template-parts/portfolio-listing-loop.php on line 68
I thought it was because these were imported from your xml file but it appears also in a newly created category.
Could you help.
UPDATE: Actually I think I have resolved this by deleting all the image placeholders left over from the importing.
Hello!
It seems the placeholder images were not completely imported so it triggered the issue (bug). If you uploaded your own images to replace the placeholders, it should be fine.
In case you would like to fix the bug manually, you can open the "/template-parts/portfolio-listing-loop.php" file and find this code:
Replace it with:
This one should fix it. I will also add it into the next version of the theme.
Thank you for your feedback!
Regards,
Paul