dfesenmyer Posted June 13 Share Posted June 13 Can you randomize the portfolio layout? so that the projects load in a different order on reload of the "portfolio" page. Link to comment
tuanphan Posted June 15 Share Posted June 15 Can you share link to portfolio page? We can check easier Email me if you have need any help (free, of course.). Answer within 24 hours. Or send to forum message How to: Setup Password & Share url - Insert Custom CSS - Page Header - Upload Custom Font - Upload File - Find Block ID - Contact Customer Care Link to comment
dfesenmyer Posted June 27 Author Share Posted June 27 https://fezlab2.squarespace.com/ pw: mingus12! I'm hoping to have the order of the display change on load? so each time someone comes to that page and different project will be first. Link to comment
tuanphan Posted June 28 Share Posted June 28 Try adding this code to Code Injection > Footer <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.6.3/jquery.min.js"></script> <script> document.addEventListener('DOMContentLoaded', function() { const productGrid = document.querySelector('div#gridThumbs'); if (productGrid) { var productItems = productGrid.querySelectorAll('.grid-item'); for (var i = productItems.length; i >= 0; i--) { productGrid.appendChild(productItems[Math.random() * i | 0]); } } }); </script> Email me if you have need any help (free, of course.). Answer within 24 hours. Or send to forum message How to: Setup Password & Share url - Insert Custom CSS - Page Header - Upload Custom Font - Upload File - Find Block ID - Contact Customer Care Link to comment
frescova Posted November 17 Share Posted November 17 Does this code work for a single portfolio or does it affect all portfolios on a site? Link to comment
frescova Posted November 17 Share Posted November 17 Looks like it's working - I just added it to the code injection for the single portfolio page so it does not affect my other portfolios. Thanks! tuanphan 1 Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment