Disable the responsive image ‘srcset’ on WordPress 4.4

I got email from client about theme i did rtl that the gallery is nit changing main pic after u press on the thumbs and when i look at the code i found new element called srcset which was making this problem after searching google i found this temp solution for this all u need to d o is to add this code into functions.php in your theme


add_filter( 'max_srcset_image_width', create_function( '', 'return 1;' ) );

Advertisements

opencart can’t upload more than 300kb image

hello it’s me not this song again 🙂

well this time my client had strange problem, she can’t upload images more than 300kb and the solution was like this

go to
/public_html/admin/controller/common/filemanager.php

line 436

if ($this->request->files[‘image’][‘size’] > 3000000000) {

and couple of zeros and your are good to go