N
N
Nik Master2021-08-03 20:15:36
WordPress
Nik Master, 2021-08-03 20:15:36

How to remove image enlargement on mobile version?

Pictures on the site increase on hover, but this prevents the phone from scrolling through the site. When the finger is on the picture it increases. How can I disable it on the mobile version of the site?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
N
Nik Master, 2021-08-04
@NikMaster777

The issue was resolved this way. Wrapped the script code in:

if(window.innerWidth > 767) {
 //здесь код скрипта
}

D
Dmitry Alyoshin, 2021-08-04
@ArchitectOfRuin

Not enough details to answer the question.
If you have WooCommerce and an online store, then there is a solution here (at the very end): https://wordpress.org/support/topic/how-do-i-disab...
If any gallery plugin does this , then there you already need to figure out which one. Example for Visual Portfolio, Photo Gallery & Posts Grid plugin: https://wordpress.org/support/topic/disable-hover-... .
It happens that the effect is built into the theme, then you need to figure out what the theme is.
In general, too little information.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question