Site logo

Archived topic

Disable button efects, hover on mobile

1 reply · Started by Rostyslav on June 26, 2021

Viewing posts 1–2 of 2

Hello,

I am using generatepress pro and generate blocks. I have many buttons on my web and I want to let them static on mobile and tablet view. Just want to keep the hover effects that I already have on desktop. How can I disable all visual effects on that button in mobile and tablet?

Hi there,

if ALL buttons were of the same style then we could write some CSS to globally overwrite the hover styles so they match the static styles. But when you have various button styles thats going to work for some and 'mess' up over buttons styles.

Unfortunately there is no CSS method to tell a :hover to inherit the static styles.

There are some Javascript methods out there but i have not come across anything that is reliable across all browsers and doesn't potentially break the click action

This archived topic is closed to new replies.