Last updated
Last updated
Now in our final step we need to add devices to the event handler for this work. Now we will be editing editor.min.js
file in following directory
elementor/assets/js/
If you check the file it will contain minified version of editor.js
in same directory. It will be hard to identify and modify particular variables in minified versions, so what you can do it modify the editor.js
file and minifying it using online tools and replace the contents of editor.min.js
with minified version of your modified code.
Open your Editor.js file and check for the following code in line number 11145
just like we did earlier we will add our devices to the stylesheet object as follows
Please use copy button of the code panel, if you do manual select ,copy , paste it might break the code ! Gitbook Bug i guess..
Now find the following devices
variable at line number more or less to 5602
and replace it with following code adding devices to the list
Please use copy button of the code panel, if you do manual select ,copy , paste it might break the code ! Gitbook Bug i guess..
Only if the minified version of js or css is used in Elementor, So make sure the modification is updated in minified files for this to work.
In case you need more reference you can check the modified files i have included.
After Modifying the file replace the contents of editor.min.js
file with the minified version of the above modified file. You can use any online minifier tools like , which ever you like and replace it.