Jump to content

Hidden Element on top of Link blocks Link

Recommended Posts

Hi there. 

I coded my website to be available in two languages with custom css from bradgood.net... works great!

Instead of having a switcher in the header with flags or whatever, I wanted to have a much more simplistic thing:

So I went for a textblock (Fluid Engine) in the Footer with two lines:

DEUTSCH  | ENGLISH

DATENSCHUTZ  |  IMPRESSUM

I linked all the text to the specific pages, then duplicated the textblock, changed the words to the corresponding english version and linked to the english pages.... Then I lay them exactly over each other.

1370179645_Screenshot2022-12-09at14_48_21.png.c7663ce9a911f6fee045178d8d536433.png

Then in the pages setting I enter the css to hide one of these blocks, depending on which page I am:

<style>
div#block-9e8f1ce13b1666c6063f {
display: none;
}</style>

Also..... worked just fine.... BUT the textblock that is originally underneath the other one is not clickable.... it seems like although the other block is not visible... it still prevents me from clicking the links from the textblock that is below.... is there anyway around this?

1818808552_Screenshot2022-12-09at14_48_32.png.26d46a46dc4cae18d3f5f95dc0043179.png

Any help is appreciated

Link to comment

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.