Jump to content

Need a different style of blog gallery on mobile - CSS used to style the blog, so need it to not apply to mobile or ipad

Go to solution Solved by Ziggy,

Recommended Posts

Posted

Site URL: https://lion-oleander-57re.squarespace.com/config/?frameUrl=/projects?category=All

Everyone has been so helpful but I just have one more tweak I need to do:
I have styled the way the blog shows in gallery on desktop which includes a hover effect to show the title. I dont want it to apply to when viewed on mobile or ipad - is there some code which either turns off the code in mobile, or 'resets' it in mobile. (A third party did the code for the hover effect)

Many Thanks!

 https://lion-oleander-57re.squarespace.com/config/?frameUrl=%2Fprojects%3Fcategory%3DAll

p: newwebsite

  • Solution
Posted

Typically you would use a media query to wrap your code so it only applies to desktop, like this:

// Only apply to desktop
@media only screen and (min-width:1024px) {
  //** add CSS code here **//
}

Replace this line with your code:

//** add CSS code here **//

Please like and upvote if my comments were helpful to you. Cheers!

Zygmunt Spray
Squarespace Website Designer
Contact me: 
https://squarefortytwo.com 
Hire me on Upwork!

📈 SEO Space (Referral link)
Ⓜ️ 
Will Myers' Plugins & Tutorials (Referral link)
 🔌 Ghost Squarespace Plugins (Referral link)
 SquareWebsites Plugins (Referral link)
 🔲SQSP Themes (Referral link) 
Spark Plugin (Referral link) 
 🖼️Pinch-to-Zoom Gallery Lightbox Plugin (Referral link) 

 Did I help? Buy me a coffee?

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.