Jump to content

Text disappearing after I leave edit mode

Go to solution Solved by tuanphan,

Recommended Posts

Site URL: https://www.nationalfashioncollege.com/partners

I'm using custom code to create a 6 column section of text on desktop and 2 column on mobile.

I am using this code currently in the custom css section:

@media screen and (min-width: 640px) {
#block-yui_3_17_2_1_1638761244808_11129 {
    column-count: 6;
    column-gap: 25px;
  }
}

@media screen and (max-width: 720px) {
#block-yui_3_17_2_1_1638761244808_11129 {
    column-count: 2;
    column-gap: 20px;
  }
}

When I am in edit mode the text shows up but as soon as I save it the text all vanishes. It is however showing on mobile. What am I doing wrong?!?!

I have tried clearing caches, different browsers, deleting section and trying again but same issue. Please help!

Screen Shot 2022-01-12 at 3.23.08 pm.png

Screen Shot 2022-01-12 at 3.23.14 pm.png

Link to comment
  • Replies 4
  • Views 627
  • Created
  • Last Reply

Top Posters In This Topic

Edit your code to this (I changed some class name)

@media screen and (min-width: 768px) {
    #block-yui_3_17_2_1_1638761244808_11129>div {
        column-count:6;
        column-gap: 25px;
    }
}

@media screen and (max-width: 767px) {
    #block-yui_3_17_2_1_1638761244808_11129>div {
        column-count:2;
        column-gap: 20px;
    }
}

 

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
  • Solution
On 1/13/2022 at 10:04 AM, GSaad said:

Unfortunately it's still doesn't seem to work. When I am in the Custom CSS screen it shows and as soon as I save it and refresh the page it disappears again.

 

It looks like Animation conflict with the code, try this new code

@media screen and (min-width: 768px) {
    #block-yui_3_17_2_1_1638761244808_11129>div {
        column-count:6;
        column-gap: 25px;
    }
#block-yui_3_17_2_1_1638761244808_11129 * {
    opacity: 1 !important;
    transform: unset !important;
}
}

@media screen and (max-width: 767px) {
    #block-yui_3_17_2_1_1638761244808_11129>div {
        column-count:2;
        column-gap: 20px;
    }
#block-yui_3_17_2_1_1638761244808_11129 * {
    opacity: 1 !important;
    transform: unset !important;
}
}

 

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

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.