Jump to content

Custom CSS only working in Edit mode

Recommended Posts

Hiya,

I entered the code below to allow visitors to hover over a picture, and the text box appears. However, it only works in edit mode. I googled this issue, and it suggested clearing the cache, but that had no effect. Hoping someone has some insight. Thank you!

 

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

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

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

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

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

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

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

Top Posters In This Topic

Top Posters In This Topic

55 minutes ago, JennMarie said:

Hiya,

I entered the code below to allow visitors to hover over a picture, and the text box appears. However, it only works in edit mode. I googled this issue, and it suggested clearing the cache, but that had no effect. Hoping someone has some insight. Thank you!

 

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

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

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

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

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

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

What is the 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
13 hours ago, JennMarie said:

It's on the ABOUT US page, under The Process.

Replace your code with the code below.

@media only screen and (min-width: 640px){
  #block-yui_3_17_2_1_1708918882415_73486, #block-yui_3_17_2_1_1708918882415_77563, #block-yui_3_17_2_1_1708918882415_79628 {
    opacity: 0 !important;
    transition: opacity 0.5s;
  }
  #block-yui_3_17_2_1_1708918882415_73486:hover, #block-yui_3_17_2_1_1708918882415_77563:hover, #block-yui_3_17_2_1_1708918882415_79628:hover {
    opacity: 1 !important;
  }
}

 

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

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.