Jump to content

Using custom code to change block stacking layout on mobile

Recommended Posts

Site URL: https://farfromhomepodcast.org/

I have a social links block on my website's homepage, and I'd like to add a link to my Clubhouse club, but Squarespace unfortunately doesn't yet included Clubhouse in its list of social media icons that can appear in a social link block. So I instead manually created an image block with a Clubhouse icon that was the same size and placed it directly next to the other links. It looks great when I view my website on my computer, but it looks like a mistake on mobile devices, since the image block automatically gets moved to the next line. I've attached a screen grab from my iPhone so you can see what I'm seeing on my end. Can anyone please advise me on some custom code I can insert to ensure that the image block remains stacked to the right of the social link block, even on mobile devices?

Thanks,
Scott

IMG_4605.jpg

Link to comment
  • Replies 1
  • Views 298
  • Created
  • Last Reply

Hi. Add to Design > Custom CSS

/* Clubhouse icon */
@media screen and (max-width:767px) {
div#block-1c5c21cc2020966f7029+.row .span-4>.row>.span-3 {
    float: left !important;
    width: 70% !important;
}
div#block-1c5c21cc2020966f7029+.row .span-4>.row>.span-1 {
    width: 22% !important;
    float: left !important;
}
}

image.thumb.png.4ad8cb8984a3319e0e8319219c968133.png

Email me if you have need any help (free, of course.). Answer within 24 hours. 
Or send to forum message

Contact Customer Care - Learn CSS - Buy me a coffee (thank you!)

Link to comment

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.