• Resolved jmfcodes

    (@jmfcodes)


    I would like to remove all image hover effects in the theme. I have tried adding background-color: transparent and setting opacity to 1 for a img:hover, a img:active, without success.

    Thanks so much in advance for any help you can offer.

    • This topic was modified 7 years, 3 months ago by jmfcodes.

    The page I need help with: [log in to see the link]

Viewing 6 replies - 1 through 6 (of 6 total)
  • Hi @jmfcodes,

    I’ve checked the images on glutenfreerv.com and I’m not seeing any hover effects when placing my cursor over the top.

    Were you able to get this sorted? Or do you mean you want to remove the semi transparent colour on the background images?

    Thread Starter jmfcodes

    (@jmfcodes)

    Hi Gemma! I wasn’t able to fully sort this out yet. It looks like the effect specifically applies to images that are links, like here:

    https://glutenfreerv.com/2019/01/06/tycho-the-cat/
    https://glutenfreerv.com/2019/01/06/installing-an-rv-slide-awning/

    I guess the workaround for now is to make the pictures unclickable.

    Hi @jmfcodes,

    Thanks for the links. I can’t see a hover effect on the linked images I’m afraid. This is what I’m seeing:

    Sreenshot

    I also checked this post on the Afterlight theme demo site and I’m not seeing a hover effect on the linked image.

    Which operating and system and browser are you using when the hover effect is visible? Would you also be able to make a screenshot of what is happening and upload it to a service like Snaggy?

    The photo of Tycho the cat made me laugh πŸ™‚

    Thread Starter jmfcodes

    (@jmfcodes)

    I am using Firefox on Ubuntu… but I just checked with Opera, and I’m not seeing the effect.

    How very bizarre!

    Here is an example of the background image showing through the primary image at mouseover: https://snag.gy/rF7Pvg.jpg

    Tycho is an endless source of laughs around here πŸ™‚

    • This reply was modified 7 years, 3 months ago by jmfcodes.

    Hi @jmfcodes,

    Thanks β€” the browser and OS information resulted in a Eureka moment! It looks like this theme contains some browser specific CSS (Firefox) which is adding the hover effect. This CSS should remove it though:

    a:not([class*="screen-reader-"]):hover,
    a:not([class*="screen-reader-"]):focus {
        opacity: 1;
    }

    I’ve actually been able to replicate this behaviour in Firefox macOS now. I missed it the first time because the hover effect takes a good couple of seconds to load but I had moved my cursor off the image before then β€” which made it look like there was no hover effect.

    Let me know if the CSS above works β€” it has done the trick in Firefox on macOS.

    Thread Starter jmfcodes

    (@jmfcodes)

    oh wow!! that did the trick! Thanks so much!

    Thanks also for the learning moment– I hadn’t realized browser-specific aesthetic features were a thing for themes. This will help in the future.

    Cheers!

Viewing 6 replies - 1 through 6 (of 6 total)

The topic ‘Remove image hover effects’ is closed to new replies.