Tagged: portfolio grid
Hello! I would like to know what is happening with my portfolio and how can I resolve this issue.
Look at the examples:
https://www.dropbox.com/s/4xp8bqg9bfpyxpn/agri-1.png?dl=0
https://www.dropbox.com/s/c8qdkiauuhp1p73/agri-2.png?dl=0
Note: I do not have code knowledge.
Thank you!
Hey urango,
Thank you for using Enfold.
The items’ spot calculation inside the grid is a bit off. Please try this code in the functions.php file to force the entries or items to reposition.
add_action('wp_footer', 'ava_auto_resize');
function ava_auto_resize(){
?>
<script>
(function($){
$(document).ready(function() {
var int = window.setInterval(function(){
$(window).trigger('resize');
}, 2000);
$(window).load(function () {
setTimeout(function() {
clearInterval(int);
}, 2000);
});
});
})(jQuery);
</script>
<?php
}
Best regards,
Ismael
Hi,
Thanks for the update.
We’ve added the code on the functions.php file. Please remove browser cache or do a hard refresh prior to checking the page.
Best regards,
Ismael
Worked perfectly. ;)
You’re the best, Ismael!
Thank you for the help!
Hi,
Glad we could help!
Please take a moment to review our theme and show your support https://themeforest.net/downloads
Don’t forget to bookmark Enfold Documentation for future reference.
Thank you for using Enfold :)
Best regards,
Basilis