PCC68 Posted March 19, 2023 Share Posted March 19, 2023 So I am using a few lines of custom CSS from a pretty reliable online source. It'a reveal text on hover code, but it doesn't appear to work in the display page when I enter the code. I save the custom CSS, then enter edit mode on the site and it works. But when I launched the site, it doesn't work. Just like in the display page, the text appears over the image all the time. The link still works, but that's it. Here is the code I am using: @media only screen and (min-width: 640px){ #block-yui_3_17_2_1_1678207568530_332105 { opacity: 0; transition: opacity .5s } #block-yui_3_17_2_1_1678207568530_332105:hover { opacity: 1; transition: opacity .5s } } below are two screen shots. The one on the left is in the preview, you can see the text is visible constantly. The one on the right shows the effect appearing when I am editing the site. I have tried it on several different sites, but no luck. Anyone have any ideas? The text in the reveal has a link. Could that be the problem? thanks Link to comment
PCC68 Posted March 19, 2023 Author Share Posted March 19, 2023 I meant to say "on" hover. Link to comment
tuanphan Posted March 21, 2023 Share Posted March 21, 2023 Hi, Can you share link to page in screenshot? We can check code easier 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
TaylorMesser Posted April 3, 2023 Share Posted April 3, 2023 I'm having the same issue where the hover effect only works in edit mode and not once I save the site. Have you found a fix? Link to comment
tuanphan Posted April 7, 2023 Share Posted April 7, 2023 On 4/3/2023 at 10:49 PM, TaylorMesser said: I'm having the same issue where the hover effect only works in edit mode and not once I save the site. Have you found a fix? If you share link to your site, we can help easier 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
Karin12345 Posted August 28, 2023 Share Posted August 28, 2023 Hi, I have the same issue. The text on hover code only works in edit mode. Tried different things, but nothing works. Appreciate help, thanks! Link to comment
tuanphan Posted August 30, 2023 Share Posted August 30, 2023 On 8/28/2023 at 7:04 PM, Karin12345 said: Hi, I have the same issue. The text on hover code only works in edit mode. Tried different things, but nothing works. Appreciate help, thanks! If you share link to page where you have problem, we can help easier 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
tuanphan Posted September 3, 2023 Share Posted September 3, 2023 On 8/28/2023 at 7:04 PM, Karin12345 said: Hi, I have the same issue. The text on hover code only works in edit mode. Tried different things, but nothing works. Appreciate help, thanks! Use this code. Some SS core code overrides your code so need to use !important @media only screen and (min-width: 640px) { #block-yui_3_17_2_1_1692880694238_13789 { opacity:0 !important; transition: opacity 1s; } #block-yui_3_17_2_1_1692880694238_13789:hover { opacity: 1 !important; transition: opacity 1s; } } 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
Karin12345 Posted September 5, 2023 Share Posted September 5, 2023 On 9/3/2023 at 11:02 AM, tuanphan said: Use this code. Some SS core code overrides your code so need to use !important @media only screen and (min-width: 640px) { #block-yui_3_17_2_1_1692880694238_13789 { opacity:0 !important; transition: opacity 1s; } #block-yui_3_17_2_1_1692880694238_13789:hover { opacity: 1 !important; transition: opacity 1s; } } Thank you so much! It worked 🙂 tuanphan 1 Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment