04. Adding Devices to Stylesheet Object
For rendering the devices breakpoints in CSS file of the site, we must add devices to the stylesheet object. which is responsible for parsing stylesheets.
The file we are editing now is named base.php
which can be found in following directory
elementor/core/files/css/base.php
In this file check for the following function in line number 627
css/base.php
just add the devices you created to the stylesheet_obj
using add_device()
method. So the modification would be as code below:
Please use copy button of the code panel, if you do manual select ,copy , paste it might break the code ! Gitbook Bug i guess..
css/base.php
Files Attachment
In case you need more reference you can check the modified files i have included.
Last updated