Jump to content

Custom CSS only working in Editor not live.

Recommended Posts

Hello,

I am hoping some one can help me. I added some customer code for a hover to reveal effect. It was working yesterday and I log in to day and now it only works in the editor. I have not changed anything so I am not sure what is going on. Any help would be appreciated.

 

@media only screen and (min-width: 640px){
#block-yui_3_17_2_1_1696814915891_3894 {
opacity: 0;
 transition: opacity 1s
}

#block-yui_3_17_2_1_1696814915891_3894:hover {
opacity: 1;
transition: opacity 1s
}
}

Link to comment
  • Replies 5
  • Views 1.2k
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Posted Images

1 hour ago, lsmith said:

Hello,

I am hoping some one can help me. I added some customer code for a hover to reveal effect. It was working yesterday and I log in to day and now it only works in the editor. I have not changed anything so I am not sure what is going on. Any help would be appreciated.

 

@media only screen and (min-width: 640px){
#block-yui_3_17_2_1_1696814915891_3894 {
opacity: 0;
 transition: opacity 1s
}

#block-yui_3_17_2_1_1696814915891_3894:hover {
opacity: 1;
transition: opacity 1s
}
}

Can you share your website URL?

If my comments are useful, please like and mark my solution as answer. It will encourage me. Thanks

MD Rofik
Website Designer and Digital Marketer

Am I helpful? Want to offer me a coffee?
Send me a message if needed any help. I'll try to reply as soon as possible.


 

Link to comment
11 minutes ago, lsmith said:

Yes it is www.firstmiletherapy.com.

For which block did you add the css code? Can you send me a screenshot?

If my comments are useful, please like and mark my solution as answer. It will encourage me. Thanks

MD Rofik
Website Designer and Digital Marketer

Am I helpful? Want to offer me a coffee?
Send me a message if needed any help. I'll try to reply as soon as possible.


 

Link to comment

Change your code to this

@media only screen and (min-width: 768px){
#block-yui_3_17_2_1_1696814915891_3894 {
opacity: 0 !important;
 transition: opacity 1s !important;
}

#block-yui_3_17_2_1_1696814915891_3894:hover {
opacity: 1 !important;
transition: opacity 1s !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.