KrisMiklos Posted March 18 Posted March 18 Hi all, My website works fine in Safari, but when I try Chrome all of the links on my 'Design' Index page lead to the same page. My other Index page (Illustration) has no problems. The url slugs are all correct, so I'm really lost. Please can someone help! I'm using the Flatiron template, site is http://www.krismiklos.com. Thanks! Kris
KrisMiklos Posted March 18 Author Posted March 18 (edited) Update - I've identified this bit of code (which changes the 'Design' index page to one column) as part of the problem: body#collection-513a8576e4b0df53688d1cf6 { div#grid { height: auto !important; } #grid .item { position: static !important; width: 100% !important; height: auto !important; top: unset !important; left: unset !important; transform: unset !important; }} When I remove this, the links work again in Chrome. Any ideas why this would be affecting page direction? Edited March 18 by KrisMiklos incomplete
KrisMiklos Posted March 18 Author Posted March 18 It seems that Chrome is interpreting the entire column of the index page as one link, rather than individual items in the grid. (Safari works fine). Now I'm really stuck!! If anyone has any ideas please let me know. Thanks!
Solution KrisMiklos Posted March 19 Author Solution Posted March 19 I have fixed using chatGPT, here is the updated code if it can help anyone else (replace your page id) body#collection-513a8576e4b0df53688d1cf6 { /* Ensure the grid container fills the available width */ div#grid { display: flex; flex-direction: column; height: auto !important; } /* Ensure each item takes up full width and preserves link functionality */ #grid .item { width: 100% !important; height: auto !important; position: static !important; } /* Reset any styles applied to anchor tags within items */ #grid .item a { display: inline !important; width: auto !important; } }
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment