Jump to content

Any reason why custom CSS is not inherited on my live site?

Recommended Posts

Site URL: https://www.steminnovations.co/about

Just wondered if anyone else had an issue where their custom-css was not visible on the live site, but is visible in preview mode? 

I added this, so that the text would sit beside the image on mobile view:

@media screen and (max-width:767px) {
#yui_3_17_2_1_1602503847421_274 {
    float: left !important;
    width: 50% !important;
  }
  
#yui_3_17_2_1_1602503847421_274.row>.col:nth-child(2n+1) {
    clear: left!important;
}
}

The preview showed exactly what i was looking for, but the live site on mobile didn't have any effect. 

Screenshot at 2020-10-12 20:08:18.png

Link to comment
  • Replies 2
  • Created
  • Last Reply

#yui- is dynamic ID. It will change if you reload the page

Use #block-yui

Use this extension to find block yui id. https://chrome.google.com/webstore/detail/squarespace-collectionblo/bggpdfnccodbnmcndckmeehdjkjojkde

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.