Jump to content

FredP

Circle Member
  • Posts

    6
  • Joined

  • Last visited

Everything posted by FredP

  1. It works like this! thanks a lot! @tuanphan I had to make a little twist. @media screen and (max-width:767px) { [data-section-id="63987d07c71b4732240d4058"] .section-background * { visibility: hidden !important; } } @media only screen and (max-width: 767px){ [data-section-id="63987d07c71b4732240d4058"] .section-background { background-image: url(https://static1.squarespace.com/static/63987c03bf68e244c3d2b2ce/t/63bc4a45670e3049b76acef1/1673284168258/Invitation-Vertical.jpg); background-size: cover; background-position: center; background-repeat: no-repeat; } }
  2. Hey @tuanphan The first part of the code works: The laptop (horizontal) image is properly hidden but the vertical image for mobile doesn't show itself! We are halfway 😅
  3. Hey @tuanphan, I would like to use a different image, and only for the main page. (the other pages don't matter). I added the code and imported the image in design > custom CSS > manage custom file. The link works well, but the code doesn't! 😉 Thanks in advance, Fred
  4. Hello, I am struggling to change the background image of my home page on mobile. Here is the URL of my website: https://www.fredetcam.com Here is the code I injected in the custom CSS section: @media only screen and (max-width: 640px){ [data-section-id="63987d07c71b4732240d4058"].section-background img { opacity:0!important }} @media only screen and (max-width: 640px){ [data-section-id="63987d07c71b4732240d4058"] .section-background { background-image: url(https://static1.squarespace.com/static/63987c03bf68e244c3d2b2ce/t/63bc4a45670e3049b76acef1/1673284168258/Invitation-Vertical.jpg); background-size: cover; background-position: center; background-repeat: no-repeat; } } Here is the image I would like to use on mobile: I saw different posts about this topic but didn't find a solution... If someone could help me. Thanks in advance, Fred
×
×
  • 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.