Jump to content

Index page links not working correctly in Chrome

Go to solution Solved by KrisMiklos,

Recommended Posts

Posted

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

  • Replies 3
  • Views 1.3k
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Posted (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 by KrisMiklos
incomplete
Posted

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
Posted

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; } }

Create an account or sign in to comment

You need to be a member in order to leave a comment


×
×
  • Create New...

Squarespace Webinars

Free online sessions where you’ll learn the basics and refine your Squarespace skills.

Hire a Designer

Stand out online with the help of an experienced designer or developer.