Jump to content

Landing page – hide one image on desktop and the other on mobile

Recommended Posts

  • Replies 3
  • Created
  • Last Reply

Top Posters In This Topic

On 7/8/2021 at 12:17 PM, Georgiaperson said:

Site URL: http://www.findthemotherlode.com

Hello

I am creating a landing page for my website – I would like the first image to show on desktop only, and the second image to show on mobile only. 

I've seen a few different codes for this on the internet but they don't work when I put them into my site.

Password is m0th3rLode!

Thanks!

Add to Design > Custom CSS

/* Hide second image on desktop */
@media screen and (min-width:768px) {
div#block-yui_3_17_2_1_1625719417515_2315 {
    display: none;
}
}
/* hide first image on mobile */
@media screen and (max-width:767px) {
div#block-yui_3_17_2_1_1625456287904_2527 {
    display: none;
}
}

 

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
  • 2 weeks later...
On 7/12/2021 at 10:39 AM, Georgiaperson said:

Thank you so much! Has worked perfectly! 

 

Hi. Do you need help with these?

Site URL – https://www.findthemotherlode.com/

1. (Mobile – Homepage) Scroll bar at the bottom of page.

https://www.findthemotherlode.com/home

findthemotherlode.com-01-min.png

2. (Mobile – Read) Paginations are too long. Want to change to Prev/Next text?

https://www.findthemotherlode.com/read/parvyn

findthemotherlode.com-02-min.png

3. (Tablet – Homepage) Reduce space?

https://www.findthemotherlode.com/home

findthemotherlode.com-03-min.png

4. (Mobile) Remove scroll bar?

https://www.findthemotherlode.com/

findthemotherlode.com-04-min.png

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

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.