Jump to content

Prestashop 1.7.8.1 scroll on mobile not working


andreicos82

Recommended Posts

My temporary solution is disable modal on product cover. In >> child_classic/templates/catalog/_partials/product-cover-thumbnails.tpl 
i edited this <div class="layer" data-toggle="modal" data-target="#product-modal">  to this <div class="layer" data-toggle="" data-target="">

and this css

.product-cover .layer:hover {opacity: 0;}

Link to comment
Share on other sites

Glad you found a workaround

I'm not confident about editing files direct but willing to give it a go.

product-cover-thumbnails.tpl on my system is at

themes/classic/templates/catalog/_partials/product-cover-thumbnails.tpl - I assume that this is the same file?

Where yours says <div class="layer" data-toggle="modal" data-target="#product-modal">

Mine says <div class="layer hidden-sm-down" data-toggle="modal" data-target="#product-modal">

Prior to any changes

 

But where is this part found???

 

49 minutes ago, matusrajnoha said:

and this css

.product-cover .layer:hover {opacity: 0;}

Thanks in advance

 

P.S. am using 1.7.8.0 do I need to upgrade to 1.7.8.1 first?

 

 

Link to comment
Share on other sites

I created a child theme. Therefore my file product-cover-thumbnails.tpl is under child_classics ...
Therefore, I am not worried about editing files. Child-themes only override default files.


I don't think you need to upgrade.

overwrite is removed:

<div class="layer hidden-sm-down" data-toggle="modal" data-target="#product-modal">

.product-cover .layer:hover {opacity: 0;} is here: 
themes/classic/assets/css/custom.css


.product-cover .layer:hover {opacity: 0;}

 

 

Link to comment
Share on other sites

 

3 minutes ago, matusrajnoha said:

I created a child theme. Therefore my file product-cover-thumbnails.tpl is under child_classics ...
Therefore, I am not worried about editing files. Child-themes only override default files.


I don't think you need to upgrade.

overwrite is removed:

<div class="layer hidden-sm-down" data-toggle="modal" data-target="#product-modal">

.product-cover .layer:hover {opacity: 0;} is here: 
themes/classic/assets/css/custom.css


.product-cover .layer:hover {opacity: 0;}

 

 

I can turn off child-themes at any time and the rest is still in its original state.

Edited by matusrajnoha (see edit history)
Link to comment
Share on other sites

  • 1 month later...

Hello,

I had the same problem on my Prestashop 1.7.8.0
I got the solution by my theme support,You must add this line in the custom.css of the theme:

#product .product-cover img { pointer-events: none }

And the problem is solved, no more blocking on the main image of the product in responsive.

Jean-Marc

  • Like 1
Link to comment
Share on other sites

  • 1 year later...
On 1/18/2022 at 6:11 PM, 1disquaire said:

Hello,

I had the same problem on my Prestashop 1.7.8.0
I got the solution by my theme support,You must add this line in the custom.css of the theme:

#product .product-cover img { pointer-events: none }

And the problem is solved, no more blocking on the main image of the product in responsive.

Jean-Marc

You are genius, working!

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...